Results 1 to 7 of 7

Thread: easy listbox question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    easy listbox question

    i need code to return the selected item in a listbox

  2. #2
    Selected index: listboxname.ListIndex
    Selected item text: listboxname.Text

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    thx

    thx

  4. #4

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by filburt1
    Selected item text: listboxname.Text
    The prefered method is
    VB Code:
    1. Msgbox List1.List(List1.ListIndex)

  6. #6
    One less reference my way.

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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
  •  



Click Here to Expand Forum to Full Width