Results 1 to 2 of 2

Thread: Combo List Boxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    Charleston, S.C.
    Posts
    21

    Unhappy

    Does anyone know how to use a combo list box so that when one of the items in the list is clicked on, a procedure or function is executed? Is there any syntax like:

    Combo1.getString

    and this would give the string that is displayed in the list box so that the Combo_OnChange() function would then be able to determine the string value and depending on the value received from this you could then execute certain procedures or functions.

    Any help would be appreciated.
    [email protected]

  2. #2
    Guest
    Put the same thing in Combo1_Click and Combo1_Change. And to determine what item it is:

    Code:
    Msgbox Combo1.text
    Or if a certain item is clicked:

    Code:
    If Combo1.ListIndex = 1 Then Msgbox Combo1.text & " was clicked."
    
    'or
    
    If Combo1.Text = "Item 1" Then Msgbox Combo1.text & " was clicked."

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