Contoh Form Login | Visual Basic 6.0

Form Login VB 6
Berikut adalah  kode program login sederhana di VB 6.0
yang dibutuhkan :

  • 3 Buah Label
  • 2 Buah Text Box
  • 2 Buah Tombol /button

Simpan antara
Private Sub Command1_Click()
//Kode Program 
End Sub


If Text1.Text = "Nama User" And Text2.Text = "Password " Then
Form2.Show
Else
Label3.Caption = "Username/Password salah"
Text1.Text = ""
Text2.Text = ""
End If

Untuk Nama User dan Password bisa anda ganti sendiri

Contoh dalam pelakasanaan :

Private Sub Command1_Click()
If Text1.Text = "agit" And Text2.Text = "12345" Then
Form2.Show
Else
Label3.Caption = "Username/Password salah"
Text1.Text = ""
Text2.Text = ""

End If



End Sub






0 komentar:

Post a Comment

Copyright © 2014 Dunia Naeta All Right Reserved