473,663 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1146
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**********@s ofthome.netschr eef in bericht
news:YM******** ***********@flp i148.ffdc.sbc.c om...
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******** *************** ***********@mic rosoft.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**********@s ofthome.netschr eef in bericht
news:YM******** ***********@flp i148.ffdc.sbc.c om...
>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
3958
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 checkboxes are picked up using $_POST and put into session variables. On page two there is another form which is simply a condensed version of the previous one (titles with no descriptions). The checkboxes are named the same on both forms. When...
0
952
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.). This whole configuration is stored in a structure. But of course, I need to save the configuration for next start: so, is there any simple way to do so I don't know if this is possible, but a solution would be exporting the structure to XML, saving...
0
1298
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 System.Drawing; using System.Web;
0
1146
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 System.Drawing; using System.Web;
15
1506
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 open "c:\preferences.txt" for input as #1 input #1 ,a,b,c
6
2181
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 this datatable. I also have a cached string that holds the way the dataview is sorted.
10
5195
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. I set the AutoPostBack property of the CheckBox in the Header to True & am invoking a sub named 'CheckAllRows' on the CheckedChanged event of this CheckBox. The CheckBox in the Header exists within the HeaderTemplate of a TemplateColumn in the...
0
1081
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 routine. For example, "Are you sure you want to delete these 5 items?". The "5" is variable. I have a gridview with a column of checkboxes. If no checkboxes are selected the confirm dialog should not be displayed.
4
8176
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 given below:- <?php session_start(); ?> <html> <head> </head> <body>
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.