Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Call kon()
  2. koneksi.Open()
  3. cd = New MySqlCommand("select * from tb_login where Username='" & UsernameTextBox.Text & "' and Password='" & PasswordTextBox.Text & "'", koneksi)
  4. rd = cd.ExecuteReader
  5. rd.Read()
  6. If rd.HasRows Then
  7. MsgBox("Login Berhasil", MsgBoxStyle.Information)
  8. Menu_Utama.Show() 'Menu yang akan ditampilkan setelah berhasil login
  9. Me.Hide()
  10. Else
  11. rd.Close()
  12. MsgBox("Username/Password salah!", MsgBoxStyle.Critical)
  13. End If
  14. koneksi.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement