Posted By

brandonio21 on 02/18/10


Tagged


Versions (?)

REQUEST : PASSWORD PROTECTION


 / Published in: VB.NET
 

//Made by Brandonio21\

  1. Public Class Form1
  2.  
  3.  
  4.  
  5. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  6. If TextBox1.Text = "brandon" Then
  7. If TextBox2.Text = "brandon" Then
  8. Dim login As String
  9. login = "Login Successful!"
  10. MsgBox(login)
  11. Else
  12. MsgBox("Wrong Password!")
  13. End If
  14. Else
  15. MsgBox("Wrong username!")
  16. End If
  17. End Sub
  18. End Class

Report this snippet  

You need to login to post a comment.