Portal Informatika | Sharing Tugas | Sharing Aplikasi | Sharing Informasi tentang Teknologi dan Aplikasi

Rabu, 17 Oktober 2012

MEMBUAT TAMPILAN USERNAME & PASSWORD DENGAN VISUAL BASIC 2008

Posted by Unknown On 10.39 No comments


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


TAMPILAN APLIKASI


0 komentar:

Posting Komentar