If anyone can help me , I wanted to know how to use a progressbar while the sql query is executing. Just a "Beg"inner in VB.net here's my code:
dataopen()
cmd.Connection = con
cmd.CommandText = "Select User_Name, userpass from Borrower where user_name='" & EmsTextBox1.Text & "' AND userpass = '" & EmsTextBox2.Text & "'"
rd = cmd.ExecuteReader
If rd.HasRows Then
MsgBox("Login Success")
Choice.Show()
Else
MsgBox("Invalid Username or Password")
End If
cmd.Dispose()
con.Close()
Thanks!