Results 1 to 2 of 2

Thread: Combo box control item changed event

  1. #1

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Combo box control item changed event

    Hello everybody

    I wish to have an event triggered every time a new selection is made in a combo box. Could somebody tell me which event I should use?

    George Papadopoulos
    SteadFast!

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    VB Code:
    1. Private Sub Combo1_Click()
    2.  
    3.     MsgBox Combo1.List(Combo1.ListIndex)
    4.  
    5. End Sub
    6.  
    7. Private Sub Form_Load()
    8.  
    9. Dim i As Long
    10.  
    11.     For i = 0 To 6
    12.         Combo1.AddItem "test" & i
    13.     Next i
    14.  
    15. End Sub

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