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
07-29-2005, 09:38 PM
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...
07-29-2005, 10:12 PM
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?
07-30-2005, 02:57 AM
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".