Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to user be able to change checkbox.checked properties during run time and this property store for next time application Run.
I am using C# and windows form application.
Posted

You can get the value of the check box by getting the value from checkbox.checked which returns either true or false. You can save the value either in a text file or in a database, depends on what you really want to do. When your application is started, you can load the value from the text file or database (depends on where you are saving the user's choice).
 
Share this answer
 
Comments
RaviRanjanKr 27-Jan-11 4:22am    
Nice Answer! 5 from me
Ryan Zahra 27-Jan-11 4:24am    
Thanks :)
You could use the settings resource :
How To Use the Settings Class in C#[^]

Alternatively use an app.config and appSettings :
http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings.aspx[^]

Cheers
 
Share this answer
 
Comments
rad444 27-Jan-11 6:40am    
thanks

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