473,388 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Saving a boatload of checkboxes

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
Sep 1 '08 #1
2 1131
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" <si**********@softhome.netschreef in bericht
news:YM*******************@flpi148.ffdc.sbc.com...
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
Sep 2 '08 #2
AGP
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]" <no************@planet.nlwrote in message
news:78**********************************@microsof t.com...
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" <si**********@softhome.netschreef in bericht
news:YM*******************@flpi148.ffdc.sbc.com...
>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


Sep 3 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the...
0
by: Sam Fisher | last post by:
Hi @all I'm really new to programming, so please dont' lose patience. Now, I'm writing a VB .net application in which (as in most apps) the user shall setup a configuration (via checkboxes etc.)....
0
by: mathieu cupryk | last post by:
in the Button1_Click I need to make the 1st column saved as readonly. How can I do this? using System; using System.Collections; using System.ComponentModel; using System.Data; using...
0
by: Luis Esteban Valencia | last post by:
in the Button1_Click I need to make the 1st column saved as readonly. How can I do this? using System; using System.Collections; using System.ComponentModel; using System.Data; using...
15
by: Dan DeConinck | last post by:
Hello, I want to save the position of all the controls on my form. I would like to write them out to a preference file. I have done this in DOS BASIC like this: TO WRITE the preference...
6
by: arun.hallan | last post by:
Hi, I have a datagrid whose datasource is a datatable which is saved to viewstate on page_load. I also have a cached string which handles what is shown on the rowfilter of the dataview of...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
0
by: marksommerville | last post by:
Can anyone help? I have a Delete button that processes a request to delete 1 or more records. I want to be able to issue a custom javascript confirm dialog message before I go through my save...
4
by: virk1711 | last post by:
I want to retain the state of checkboxes after the submit button has been clicked. What it is currently doing is that it is resetting the checkboxes after the submit button is clicked. My code is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.