viviansm

viviansm

  • NA
  • 21
  • 0

login form

May 27 2004 2:57 AM
please help me in the coding. i m a beginner in VB.Net. i would like to create a login form and the username and the password will be check in the SQL server. the form contains a comboBox and a textbox and two buttons - OK, Cancel. in the form_load, the username is retrieve from the SQL server , the database = "VideoSys", Table="Logon", with the field= username and password.The username="Admin" and the password="Admin" is the first record. The user can select either to login as a Admin or the user name from the combobox. then they have to enter the password in the textbox.the pressed OK button. If the username and the password is correct, then the form2 will display else the error message " invalid user and password".

Answers (4)