Raven65
Well-known member
- Joined
- Oct 4, 2006
- Messages
- 305
- Programming Experience
- 3-5
Alright, I think the long day is making me overlook something, so before I head home I'll post this for any help I can get.
I have a checked list box on Form1 that contains text representations of data items I am storing in a class. If the user checks "TextItem1" then I want to show a bar on a graph.
What I am trying to figure out is how do I say:
If "TextItem1" Is Checked Then...
I see no part of the CheckedListBox that is storing the text portion of each checked item. It seems that I am going to have to do something along the lines of:
Psuedo:
For Each checkedIndex in CheckedListBox.Checked
If CheckedListBox.Items(CheckedIndex) = "TextItem1" Then
DrawBar
End If
Next
Does that sound at all right? Am I totally overlooking something terribly simple here?
I have a checked list box on Form1 that contains text representations of data items I am storing in a class. If the user checks "TextItem1" then I want to show a bar on a graph.
What I am trying to figure out is how do I say:
If "TextItem1" Is Checked Then...
I see no part of the CheckedListBox that is storing the text portion of each checked item. It seems that I am going to have to do something along the lines of:
Psuedo:
For Each checkedIndex in CheckedListBox.Checked
If CheckedListBox.Items(CheckedIndex) = "TextItem1" Then
DrawBar
End If
Next
Does that sound at all right? Am I totally overlooking something terribly simple here?