Advertisement
Guest User

Login Form Code

a guest
Dec 8th, 2018
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Username and password code:
  2. Public uname As String = "test"
  3. Private passwd As String = "123"
  4.  
  5. Login Button Code:
  6.  If TextBox1.Text = uname And TextBox2.Text = passwd Then
  7.             Me.Hide()
  8.             TextBox2.Text = ""
  9.             TextBox1.Text = ""
  10.             Main.Show()
  11.  
  12.  
  13. Logout Button Code:
  14. Me.Hide()
  15. Form1.Show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement