Oke Sahabat Semua kita akan membuat tampilan Login User.. seperti coding dan tampilannya mari kita lihat
--listing code
Public Class Form1
Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click
If TextBoxX1.Text = "Husni" And TextBoxX2.Text = "Husni" Then
MessageBox.Show("Login Anda Berhasil")
Else
MessageBox.Show("Login gagal")
End If
End Sub
Private Sub PredikatToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PredikatToolStripMenuItem.Click
Form2.Show()
End Sub
Private Sub KelulusanToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KelulusanToolStripMenuItem.Click
Form3.Show()
End Sub
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Application.Exit()
End Sub
End Class
Tampilannya seperti ini...
jika username dan password 'husni' maka login berhasil tapi jika salah satunya slah maka login gagl... :))
0 komentar:
Posting Komentar