Link to home
Start Free TrialLog in
Avatar of Norma Posy
Norma PosyFlag for United States of America

asked on

VB6 Combo Box Change Event

When user selects an item in a combo box, I would like to respond with a subroutine that does something with the new choice.

I put a break in the code written under subroutine "ComboBox_Change", but the program doesn't seem to call that subroutine when a new selection is made in the combo box.

I've temporarily installed a "GO" command button and put the code there, but that requires the user to do one extra mouse click.

The action should take place whenever a new selection is made in the combo box itself.

What am I missing here?
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Try the Click event.
Avatar of Norma Posy

ASKER

But there are two clicks.
First, to get the drop-down of the items.
Second, to select the item.

Anyway, I'm curious. What event actually triggers the "change" event?
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much.
You have clarified the combo box "click" and "change" events for me.
- - Norma
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015