Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
End Sub
Private Sub ButtonLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonLogin.Click
Dim admin As String
Dim pass As String
admin = TextBox1.Text
pass = TextBox2.Text
If admin = "admin1" And pass = "12345" Then
Form2.Show()
Else
MessageBox.Show("Password Salah!")
End If
End Sub
End Class
Rabu, 17 Oktober 2012
MEMBUAT TAMPILAN USERNAME & PASSWORD DENGAN VISUAL BASIC 2008
TAMPILAN APLIKASI
0 komentar:
Posting Komentar