Membuat Login Sederhana Menggunaka VB.Net
Dibawah ini koding untuk membuat login sederhana menggunakan vb.net.
Public Class LoginForm1
Private Sub OK_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles OK.Click
If
UsernameTextBox.Text = "admin" And PasswordTextBox.Text = "12345"
Then
Menu_Utama.Show()
Else :
MsgBox("Sorry,username or password not
found", MsgBoxStyle.OkOnly, "invalid")
End If
End Sub
Private Sub Cancel_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles Cancel.Click
Me.Close()
End Sub
End Class
Semoga bermanfaat.
Komentar
Posting Komentar