' Project Password Public Class frmLogin Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub Friend WithEvents txtPassword As System.Windows.Forms.TextBox 'Required by the Windows Form Designer Private components As System.ComponentModel.Container 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents btnSubmit As System.Windows.Forms.Button Friend WithEvents btnCancel As System.Windows.Forms.Button Private Sub InitializeComponent() Me.btnSubmit = New System.Windows.Forms.Button Me.txtPassword = New System.Windows.Forms.TextBox Me.btnCancel = New System.Windows.Forms.Button Me.SuspendLayout() ' 'btnSubmit ' Me.btnSubmit.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.btnSubmit.Location = New System.Drawing.Point(16, 56) Me.btnSubmit.Name = "btnSubmit" Me.btnSubmit.Size = New System.Drawing.Size(224, 32) Me.btnSubmit.TabIndex = 1 Me.btnSubmit.Text = "Submit Password" ' 'txtPassword ' Me.txtPassword.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.txtPassword.Location = New System.Drawing.Point(16, 16) Me.txtPassword.Name = "txtPassword" Me.txtPassword.PasswordChar = Microsoft.VisualBasic.ChrW(42) Me.txtPassword.Size = New System.Drawing.Size(224, 26) Me.txtPassword.TabIndex = 0 Me.txtPassword.Text = "" ' 'btnCancel ' Me.btnCancel.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.btnCancel.Location = New System.Drawing.Point(16, 96) Me.btnCancel.Name = "btnCancel" Me.btnCancel.Size = New System.Drawing.Size(224, 32) Me.btnCancel.TabIndex = 2 Me.btnCancel.Text = "Cancel" ' 'frmLogin ' Me.AcceptButton = Me.btnSubmit Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(264, 134) Me.Controls.Add(Me.btnCancel) Me.Controls.Add(Me.btnSubmit) Me.Controls.Add(Me.txtPassword) Me.Name = "frmLogin" Me.Text = "frmLogin" Me.ResumeLayout(False) End Sub #End Region Private Sub btnSubmit_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnSubmit.Click MsgBox(txtPassword.Text) Me.Hide() End Sub Private Sub btnCancel_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCancel.Click txtPassword.Clear() Me.Hide() End Sub Private Sub frmLogin_Closing(ByVal sender As Object, _ ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True Me.Hide() End Sub End Class