Professional Documents
Culture Documents
com
Pusat Kursus VB.Net & Bimbingan Tugas Akhir
5. Coding :
Imports System.Data.Odbc
Call Koneksi()
CMD = New OdbcCommand("select * from user where
nama_user='" & TUser.Text & "' and pwd_user='" & TPassword.Text &
"'", CONN)
DR = CMD.ExecuteReader
DR.Read()
If Not DR.HasRows Then
MsgBox("Login gagal")
www.konsultasivb.com
Pusat Kursus VB.Net & Bimbingan Tugas Akhir
TUser.Clear()
TPassword.Clear()
TUser.Focus()
Else
Me.Visible = False
Label1.Visible = True
Timer1.Enabled = True
Timer1.Start()
If ProgressBar1.Value < 100 Then
Else
ProgressBar1.Value = 1
Timer1.Enabled = False
Timer1.Stop()
MsgBox("anda berhak login")
Me.Visible = False
MenuUtama.Show()
End If
End If
End Sub