I am going to make this short and simple. I wish to have a program that when you click a checkbox to make it checked, I want it to be able to save the setting when I exit the program so when I go back into it then that same checkbox will be checked.
I have many checkboxes in the program so will I have to do the code on each of the checkboxes if I even need a code for I have no idea what I'm doing with it.
Thanks in Advance, Jobartley515
if you need to do the same operation with many checkboxes, you can create them as an array (call them with the same name and set the index property) or you can iterate through them using the form Controls collection:
dim ctl as control
for each ctl in Controls
if typeof ctl is CheckBox then ... do something
To save/restore to the registry, use the SaveSetting and GetSetting methods, put them in the form Load and Unload events (complete documentation in MSDN)
This is to make really short and simple...
"There are two ways to write error-free programs. Only the third one works."
Okay thanks for the quick response, but I'm really knew to this and I don't know about the SaveSetting or GetSetting and I don't know how to use them.
Any help on these topics?
Type GetSetting and/or SaveSetting in VB's code editor, highlight the word and press F1. If that doesn't work, try searching Google for "vb getsetting" and/or "vb savesetting".
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
By sunilbenjamin in forum ASP.NET
Last Post: 08-01-2005, 03:12 PM
By Keith in forum dotnet.announcements
Last Post: 06-15-2003, 07:16 PM
By Senkwe in forum ASP.NET
Last Post: 06-11-2002, 06:54 AM
By Chris Brown in forum VB Classic
Last Post: 01-23-2001, 01:47 PM
By com no spam lift in forum ASP.NET
Last Post: 09-15-2000, 11:01 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center