Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,

i am developing a windows application using c#.net. In that i can Create a login window in that window i want to compare the username and password and then redirect to some other form.....

how can i approach in windows application (remember that i am not using asp.net)

if any one can have an idea please be send urgently
Posted

I see you haven't tried anything.
Create textboxes to get user details, create button to submit it and check against database. If successful, navigate to a different form.

If you can't do these, you need to read some basics before you code.
But a good C# book or read articles on CodeProject or so many other sites.
:thumbsup:
 
Share this answer
 
if(txtUserName.Text.Trim().Length.Equals(0)
&& txtPassword.Text.Trim().Length.Equals(0))

try this one if u want to check if a value is enterd in the user naem and password text boxes....

if want to check the format then u can go for a regular expression
 
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