Coding Global Background
Coding Global

log in form

Archived 2 years ago
44 messages
0 members
2 years ago
Open in Discord
K
hqns_
Verified

hello, i tried using this code Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click If TextBox1.Text = "admin" AndAlso TextBox2.Text = "admin" Then MsgBox("Login Successfully!", MsgBoxStyle.OkOnly, "Log In Form") Form2.Show() Me.Hide() Else MsgBox("Sorry, Incorrect Username And Password", MsgBoxStyle.OkOnly, "Invalid") End If End Sub to have a log in form which in simpel words just lets me pu tmy username and password, lets me log in, and projects another screen. but i have a problem, the code above(which was given by my teacher) isnt working. It shows that it has 5 errors yet i did everything perfectly. could anyone help me out please?

Replies (45)