|
-
Aug 21st, 2001, 08:43 PM
#1
Thread Starter
Fanatic Member
easy listbox question
i need code to return the selected item in a listbox
-
Aug 21st, 2001, 08:45 PM
#2
Member
Selected index: listboxname.ListIndex
Selected item text: listboxname.Text
-
Aug 21st, 2001, 08:56 PM
#3
Thread Starter
Fanatic Member
-
Aug 21st, 2001, 09:04 PM
#4
Member
-
Aug 21st, 2001, 09:24 PM
#5
PowerPoster
Originally posted by filburt1
Selected item text: listboxname.Text
The prefered method is
VB Code:
Msgbox List1.List(List1.ListIndex)
-
Aug 21st, 2001, 09:30 PM
#6
Member
One less reference my way.
-
Aug 21st, 2001, 09:49 PM
#7
PowerPoster
true, but that's what MSDN uses, and what's a reference here and there?...
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
|