954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

c# code for login and checking password

hello all the members,

i'm new to .net and i want code for a window application in c# for entering the userid and password in windows form

bestonearth
Newbie Poster
1 post since Sep 2006
Reputation Points: 8
Solved Threads: 0
 

then do it, you seem to know what you need, just implement it. And if you get stuck post some code.

Dark_Omen
Posting Pro
573 posts since Apr 2004
Reputation Points: 23
Solved Threads: 6
 

Could be as simple as....

if(tbUserName.Text != "username") //Textbox names tbUserName
{
MessageBox.Show("Wrong user name"); //show message
}
else
{
MessageBox.Show("Correct");
}


That is as basic as it comes ;).

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

@bestonearth - where are you going to compare userid and password? Code or Database? Be specific in asking help.

@jaryle - incorrect thread to post

muzikhera
Junior Poster in Training
54 posts since Aug 2010
Reputation Points: 8
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You