Avatar of running32
running32
 asked on

Leave event does not fire on Combo box all the time.

When I move from  the combobox on my form I have a leave evernt coded.   My problem is that it does not always fire.   What is the best event to use so I can test the contents of the combobox once a selection has been made there it be automatcially or by a person clicking the drop down.

Thanks
Visual Basic.NET

Avatar of undefined
Last Comment
running32

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Erick37

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Zhaolai

Or SelectionChangeCommitted
Erick37

SelectedIndexChanged will fire each time a new selection is made by the user or from code.
SelectionChangeCommitted will fire when the user has made a new selection, but not from code.
Both will fire while the focus is still on the control.

If you need to check it once, you may try the Validated event, but if the Leave event is not firing, then the Validated event may not fire either.
running32

ASKER
thanks
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy