Advertisement
PlajariKode

event keyPress tombol Enter

Oct 29th, 2019
2,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.18 KB | None | 0 0
  1. Dim pw As String = "password"
  2.  
  3. If e.KeyChar = chr(13) Then
  4.     If TextBox1.Text = pw Then
  5.         msgBox("Tampilkan Form")
  6.     Else
  7.         msgBox("Password salah!", vbCritical)
  8.     End If
  9. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement