Results 1 to 5 of 5

Thread: Check if Listbox is selected? [RESOLVED!]

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    Check if Listbox is selected? [RESOLVED!]

    I need to check whether or not an item in my list box is selected. So basically if it is then MsgBox ("Action 1") and if it isnt ("Actions 2")
    Last edited by Madboy; Dec 10th, 2003 at 09:49 AM.

  2. #2
    Hyperactive Member ravi15481's Avatar
    Join Date
    Aug 2002
    Location
    INDIA
    Posts
    421
    check the list1.ListIndex property it will return -1 if nothing is selected else it will return the selected item index.
    A good friend...

  3. #3

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Thanks

  4. #4

  5. #5

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    What the heck is a fishy woof woof?!

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