Click here to Skip to main content
16,017,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create user name and password by using C# 2010 windows form and coding

(Through the Student Log to make testing and also login to the teacher for a modification or deletion of questions)
Posted
Updated 20-Sep-11 18:33pm
v3

It can be very simple, take the default form that your new C# project creates, add two labels, Username and Password, place a text box beside each, and on the the password text box, set the mask property to true.

Add a pair of buttons called for example "Log On" and "Quit"

The click event on your "Log On" button should read the username and password from the textboxes and do what ever validation you instuct it to.

I suggest putting this in its own assembly - that way you can re use it for any project that requires Username/Password validation
 
Share this answer
 
You can create your own login screen with username and password. VS2010 gives u ready login form with following steps

1. Create new project
2. right click in solution explorer --> add New item --> select Login form

and here is good login code example

Login code[^]
 
Share this answer
 
You would find several projects of this type here:
http://www.1000projects.com/new/dotnet/major/main.html[^]
 
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