i'm in a bit of problem here :(
I've been using Checkboxes on my app - but it has been horrible, since my app has alot of checkboxes - over 20-30.
But i decided to use checkedlistbox now but theres a problem there too:
When i was using checkboxes i was doing it like this
Expand|Select|Wrap|Line Numbers
- If checbox1.Checked = True Then
- isChecked.Add(PathToCacheFolder)
- End If
- If checbox2.Checked = True Then
- isChecked.Add(PathToDownloadFolder)
- End If
Expand|Select|Wrap|Line Numbers
- For ffCheckedFound As Integer = 0 To ffCheckList.Items.Count - 1
- If ffCheckList.Items.Item(ffCheckedFound) Is "Allow Cache" And ffCheckList.GetItemChecked(ffCheckedFound) = True Then
- ffCheckedOpt.Add(PathToCacheFolder)
- End If
- If ffCheckList.Items.Item(ffCheckedFound) Is "Allow Download" And ffCheckList.GetItemChecked(ffCheckedFound) = True Then
- ffCheckedOpt.Add(PathToDownloadFolder)
- End If
- Next ffCheckedFound
I want to see if a checkbox is checked in the CheckedListBox object
like in my current example when some one checks the "Allow Cache" Checkbox in the checkedlistbox it will add value to ffCheckedOpt.
is there a better a way to verify if the user clicked on a certain checkbox
like above- when the user clicks the "Allow Cache" checkbox it adds "PathToCacheFolder" in the varible (is there a better and easier way to do this)
My code is becoming very long - especially since i have so many checkboxes
Sorry if this is very complicated but this is making so tensed myself :(
Thanks in advance
Regards