Saving a boatload of checkboxes

  • Thread starter Thread starter AGP
  • Start date Start date
A

AGP

VB.NET 2005
i was reading some of the documentation on saving settings and i think i
have a good grasp on things with the My.Settings classes. I understand how
to bind a control to a setting and also how to save settings manually. The
only thing I havent beeen able to find is how to do a massive amount of
controls in one swoop. Say on my app i have 45 checkboxes and i want to save
their settings (checked, enabled, etc) how would i do that without having to
go through and save each and every checkbox manually or bind it to a setting
in the IDE? I was thinking there may have been something like a group saving
function where everything in a group box could be saved.

AGP
 
AGP,

How do you think all those things are done behind the scene.

You writes as if looping trhough your checkboxes takes an hour while it
takes probably a pico second.

But do you have 45 checkboxes? That means billions of possibilities.

Cor
 
not sure i follow. yes I know that the IDE creates the code behind the
scenes. I can definitely loop through my checkboxes no problem but how is
that able to save to the same config file that My.Settings writes to? I do
have 45 checkboxes and maybe even more once the project is complete. At this
point all i want to save is the checked state. they are all part of the same
group so there are no combinations, its just each checkbox is either checked
on or checked off.

AGP
 
Back
Top