Saving Checkboxlist settings in VB 2005 for Each user.

  • Thread starter Thread starter mattfracassa
  • Start date Start date
M

mattfracassa

VB 2005, .net 2.0

Is there an easy way to save the items checked in a CheckedListBox for
each user (so that everytime the user opens the app, it remembers and
displays what was checked.)

I know I can make a collection in user settings, and save/retreive
items by looping through the indices. But, can I just somehow save and
retreive the whole CheckedListBox collection to the
my.settings.chkBoxItems collection I defined in my App Settings?
 
I would probably accomplish this through a registry setting if the
checked items changes often. If it is static and your're always going
to have the same items checked, either set the .Checked = true option
for the checkboxes, or set it in the app config file.
 
Let me re-phrase the question: Is there a good trick or easy way to
save and retreive a Collection to the user config file (my.settings)


I have already defined the collection in the app settings.
 
Back
Top