theo philus

theo philus

  • NA
  • 31
  • 0

log-on form

Jan 8 2009 3:56 PM
please help me in the coding. i m a beginner in C#.Net. i would like to create a login form and the username and the password will be check in the MYSQL SERVER. the form contains  two textboxes and two buttons - OK, Cancel. in the form_load, the username is retrieve from the MYSQL server , the database = "USERS", Table="Logon", with the field= username and password.The username="Admin" and the password="Admin" is the first record. The user can select  login as a Admin. then they have to enter the password and username in the textboxes.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".

can you show me this with codes

Answers (2)