Message 1 of 4
Vb.Net: CheckedListBox - Get The Value From A Certain Line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have a CheckedListBox in a Vb.Net application that I am using with Inventor.
I need to get the value from a certain line in the CheckedListBox and, for testing purposes, display it in a message box.
For example, say I have a CheckListBox containing 5-lines of text thus....
BLACK
WHITE
GREEN
YELLOW
RED
How do I get the value of line 3, for example (in this case it would be GREEN)?
I am using the code:
Msgbox(CheckedListBox1.GetItemText(3))
But it is giving me a number and not the text "GREEN"
Many thanks in advance!
Darren