Coding Global Background
Coding Global

log in form

Archiviert 2 years ago
44 Nachrichten
0 Mitglieder
Erstellt 2 years ago
Aktualisiert 2 years ago
In Discord öffnen
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?

Antworten (45)