Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have created a login form in windows.In that i do have a username textbox, a password textbox and a checkbox. I want that whenever user clicks checkbox(checked==true) it should not ask username to the user. In username textbox last login user must be seen.
Posted
Updated 26-Feb-12 22:56pm
v2

You have to write code to do that. You can choose to store the credentials in the database (if your app has one), or in an XML file or a text file.

Be sure to encrypt the password using a strong encryption scheme.
 
Share this answer
 
Comments
BalaThakur 27-Feb-12 5:05am    
Thanks sir. But how to that for xml or text file. If you please tell me that.
If its Winform Applcation . You can store the userid and password in txtfile in MyDocumentsFolder of the user. (System.Environment.SpecialFolder.MyDocument)
You can create a simple class with Userid,Password, or any more settings that you want to save from that user and then can serialize it to that file.
During login if that file exist you deserialize it and verify the authentication
 
Share this answer
 
v2
Comments
BalaThakur 27-Feb-12 5:31am    
Thanks Rishikesh.

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