07-23-2012, 06:57 AM
um heres my code i think it will help it did 4 me
public class form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If TextBox1.Text = "User Name" AndAlso TextBox2.Text = "Password" Then
form2.show()
Else
MsgBox("Invalid!")
End If
End Sub
End Class
public class form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If TextBox1.Text = "User Name" AndAlso TextBox2.Text = "Password" Then
form2.show()
Else
MsgBox("Invalid!")
End If
End Sub
End Class