Ja2984
Member
- Joined
- Nov 23, 2007
- Messages
- 13
- Programming Experience
- Beginner
Hi all hope this is the correct forum to post in.
I have some code that selects all items in a check list box and i'm having trouble trying to writing some code to deselect all items.
Here is my code to select all:
Theres probably a simple solution but i just cant find it and its driving me crazy
Thanks for any suggestions
I have some code that selects all items in a check list box and i'm having trouble trying to writing some code to deselect all items.
Here is my code to select all:
VB.NET:
Private Sub GeoCheckItems(ByVal IsChecked As Boolean)
GeoCheckListCount = Me.GeoCheckedListBox.Items.Count
If GeoCheckListCount >= 1 Then
If Me.GeoCheckBox.Checked = True Then
Me.GeoProgressBar.Value = 0
For Counter As Integer = 0I To Me.GeoCheckedListBox.Items.Count - 1I
Me.GeoCheckedListBox.SetItemChecked(Counter, IsChecked)
Next
Me.GeoProgressBar.Value = 100
End If
End If
End Sub
Theres probably a simple solution but i just cant find it and its driving me crazy
Thanks for any suggestions