Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i have a form in it there is username and password ! i want when someone write the username and pass and click on the log in button ! if the username and pass are correct then a new form pop up and in the new form there is a table found in my database and if the username is wrong then message box shows access denied !
Posted
Updated 8-Dec-09 2:22am
v2

I just noticed that this is a repost of the same question. Pleas, ask your question once only! If anyone can help, then they will, but if you just repost the same question you will get a bad reputation and be ignored.

[edit]Actually this is the THIRD time you have posted this question. Please read the guidelines and do not spam the forum[/edit]
 
Share this answer
 
v2
I'll take a few guesses.

1: You have no code.
2: You want to know how to check info put in a textbox against some list.
3: You want a form to be started after step 2 passes and a database is accessed. Otherwise a messagbox will show.



Start writing. Make your form have a text box, and figure out how to check the data when the log in button pressing event happens.

Have an if else statement checking to see if the password is okay, if not, make the messagebox tell them no. If yes, start a new form and have that form get the table from the database.

If you don't know how to do these things, start looking.
I'll even give you a start point.
http://www.functionx.com/vcsharp/controls/textbox.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900