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>
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