Connecting Tech Pros Worldwide Forums | Help | Site Map

Saving a boatload of checkboxes

AGP
Guest
 
Posts: n/a
#1: Sep 1 '08
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



Cor Ligthert[MVP]
Guest
 
Posts: n/a
#2: Sep 2 '08

re: Saving a boatload of checkboxes


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


"AGP" <sindizzy.pak@softhome.netschreef in bericht
news:YMUuk.19758$jI5.13910@flpi148.ffdc.sbc.com...
Quote:
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
Guest
 
Posts: n/a
#3: Sep 3 '08

re: Saving a boatload of checkboxes


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


"Cor Ligthert[MVP]" <notmyfirstname@planet.nlwrote in message
news:785C9CF4-6DDC-45A7-9D7D-1C8D2C130FB5@microsoft.com...
Quote:
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
>
>
"AGP" <sindizzy.pak@softhome.netschreef in bericht
news:YMUuk.19758$jI5.13910@flpi148.ffdc.sbc.com...
Quote:
>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
>>
>


Closed Thread