Selasa, 30 Oktober 2012

Pembuatan Login Pada Visual Basic 6.0

 Form Login

Form Login adalah form yang digunakan untuk pengaman atau keamanan data agar tidak mudah orang untuk mengakses dengan semaunya oleh karena itu untuk penulis harus membuat password pada setiap program yang telah dibuat. Disana terdapat :
     Class
Properties
Setting
     Form1
Name
Caption
Form_login
Login
Label1
Name
Caption
Backstyle
Label1
Login
Transparent
Label2
Name
Caption
Backstyle
Label2
Password
Transparent
Command1
Name
Caption
Command1
In
Command2
Name
Caption
Command2
Out
Picture1
Name
Picture
Image1
Logo Telkom.jpg
Picture2
Name
picture
Image2
Logo TS.jpg
Picture3
Name
picture
Image3
Ico Next.jpgx
Picture4
Name
caption
Image4
Ico Previous.jpg





















Tabel 1.1 Properties Form Login

            Memasukan koding :

Private Sub Command1_Click()
If Text1.Text = "telkom" And Text2.Text = "123" Then
Form2.Show
Form1.Hide
Else
MsgBox "Invalid Login and Password"
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
End Sub
Private Sub Timer1_Timer()
Label4.Caption = Time
Label5.Caption = Date
End Sub

Tidak ada komentar:

Posting Komentar