Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combo Box Change event not firing on click (VB6)

    Okay, this is another, probably really basic, question.

    I have a standard ComboBox and I want to trap for change events so I can enable a Save button. If the user types something, it fires. If the user clicks on the drop down and makes another selection, it doesn't.

    There doesn't appear to be any event that fires for this (except the click event which fires before anything in the box is changed). Does anyone have a trick they use to trap for this event?

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Combo Box Change event not firing on click (VB6)

    The Click event in either a ComboBox or ListBox does not fire until a selection is clicked on, and then only if a change results. It is not fired when the dropdown button on a ComboBox is clicked (that is the DropButtonClick event). So the click event of the combobox should accomplish what you want.

    Andrew C

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •