Cara Membuat Form Login Sederhana VB.Net 6.0
Private sub cmdok_Clik()
if txtnama.Text = " " Or txtpassword.Text = " " Then
MsgBox "Silahkan Masukkan Nama dan Password Anda"
Elseif txtnama.Text = "Sheena" and txtpassword.Text = "xrshenn" then
MsgBox "password benar",64,"konfirmasi"
Form2.Show ' <<< Setelah login langsung masuk ke form 2 unload me
Else
MsgBox"password salah",16"konfirmasi"
txtpassword.Text = " "
txtpassword.SetFocus
End if
End sub