kshadow22

How To Make A Simple Log In With Visual Basic 2008

Oct 24th, 2013
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HOW TO MAKE A SIMPLE LOG IN BY KSHADOW22 (VISUAL BASIC 2008)
  2.  
  3. _______Button1(Click)
  4. If TextBox1.Text = ("user") And TextBox2.Text = ("passcode") Then
  5. Form2.Show
  6. Else
  7. MessageBox.Show ("Error, Incorrect Information", "Error")
  8. End If
  9.  
  10.  
  11. _______TextBox1(Mouse Down)
  12.  
  13. If TextBox1.Text = ("Username") Then
  14. Textbox1.text = ("")
  15. End If
  16.  
  17.  
  18. _______TextBox2(Mouse Down)
  19.  
  20. If TextBox2.Text = ("Password") Then
  21. TextBox2.Text = ("")
  22. End If
  23.  
  24.      {EXTRA FEATURES}
  25. _______Form1(Load)
  26. TextBox1.Text = ("Username")
  27. TextBox2.Text = ("Password")
  28. TextBox2.UseSystemPasswordChar = True
  29. Me.BackColor = Color.Black
  30. TextBox1.BackColor = Color.Black
  31. TextBox2.BackColor = Color.Black
  32. Button1.BackColor = Color.Black
  33. Button1.ForeColor = Color.Cyan
  34. TextBox1.ForeColor = Color.Lime
  35. TextBox2.ForeColor = Color.Red
RAW Paste Data