You are on page 1of 1

Private Sub Command1_Click()

If Text1.Text <> "" And Text2.Text <> "" Then

If Text1.Text = "Ayam" And Text2.Text = "goyeng123" Then

MsgBox ("Welcome")

Form1.Hide

Form2.Show

Else

MsgBox ("User atau password Salah! ")

End If

Else

MsgBox ("User atau Password Tidak Boleh Kosong! ")

End If

End Sub

Private Sub Command2_Click()

pesan = MsgBox("Anda Yakin Ingin Keluar? ")

If pesan = vbYes Then

End

Else

Form1 SetFocus

End If

End Sub

You might also like