|
-
Aug 24th, 2003, 02:05 PM
#1
ListBoxes and TreeViews, question
I have been searching, I've looked in my VB book and I CANNOT find anything on this, so here goes..
How can I get the label the person clicks on in a listbox or treeview?
Like The list box will say
Code:
Cookies
People
Cars
When someone clicks on People, how can I actually get the string "people"? I know how to make it do something on click, but the words will be 100% different probably everytime it's loaded so I can't hard code SelectedIndices.Contains(1) to do what the string "people" would do, because it will probably be in different positions at run time depending on many different things and options.
Erm I hope I explains that correctly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|