help with login system
hello, i am making a simple login system and i require some assistance.
on the login page -
if you do not enter anything in user/pass an error will come saying
invalid user / pass, but then form2 comes up how can i stop this.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then MsgBox("Incorrect Username!")
If TextBox2.Text = "" Then MsgBox("Incorrect Password!")
Form2.Show()
End Sub
End Class
here this is my code, i want it so when u enter the WRONG information form2 will not show, atm if i dont type anything in errors come but form 2 after
if you do not enter correct info i wish form2 would not show
but if u enter anything or not it still shows