Advertisement
rizkijn

Source Code Login Form

Jun 11th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Private Sub cmdlogin_Click()
  2. If txtusername.Text = "" Then
  3. MsgBox "Username Masih Kosong!!!", vbInformation, "Masukan Username"
  4. Else
  5. cmdlogin.Enabled = False
  6. txtusername.Enabled = False
  7. cmdlogin.Caption = "Please wait..."
  8. Timer2.Enabled = True
  9. End If
  10. End Sub
  11.  
  12. Private Sub Form_Load()
  13. Timer2.Enabled = False
  14. End Sub
  15.  
  16.  
  17. Private Sub Timer1_Timer()
  18. Text3.Text = Inet1.OpenURL("http://domain anda.com/data/data-nama.php?e=" + txtusername.Text)
  19. Text4.Text = Inet2.OpenURL("http://domain anda.com/data/data-password.php?e=" + txtusername.Text)
  20. Text5.Text = Inet3.OpenURL("http://domain anda.com/data/login.php?e=" + txtusername.Text)
  21. End Sub
  22.  
  23. Private Sub Timer2_Timer()
  24. If Text5.Text = "Tidak Terdaftar" Then
  25. MsgBox "Username/password tidak terdaftar", vbInformation, "info"
  26. Timer2.Enabled = False
  27. Else
  28. If txtpassword.Text = Text4.Text Then
  29. If Text5.Text = "Password Tidak Benar" Then
  30. MsgBox "Password Salaht", vbInformation, "info"
  31. Timer2.Enabled = False
  32. Timer2.Enabled = False
  33. Else
  34. If Text5.Text = "aktif" Then
  35. MsgBox "Selamat datang , " & vbCrLf & "========================" & vbCrLf & "Nama: " & Text3.Text & vbCrLf & "========================", vbInformation, "Information"
  36. Form2.Show
  37. Form2.Label2 = Text3.Text
  38. Me.Hide
  39. Timer2.Enabled = False
  40. End If
  41. End If
  42. Else
  43. MsgBox "Username/Pasword Salah", vbInformation, "info"
  44. Timer2.Enabled = False
  45. End If
  46. End If
  47. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement