Link to home
Start Free TrialLog in
Avatar of Khawar091697
Khawar091697

asked on

How to trriger an event when data in DBCombo is changed?

I want to enable or disable a ListBox on the basis of a certain value of a DBCombo control. I have used mouseup and click and it works when these events are triggered but if I change it with keyboard it does not work. I have used change event but it does not work. I will be thankful for a suggestion.
khawarjawad@hotmail.com
Avatar of ESI
ESI

The best way is to use either a static or global flag (a boolean variable) to "lock" the control, or check it's enable property to  immediately exit the event.

Hope it helps
Avatar of Khawar091697

ASKER

Edited text of question
This is not my requirement. I want to know that which 'single event' is triggered when we change item either by mouse or by keyboard.
Try the SelChange event then
But DBCombo don't have such event as SelChange? Kindly tell me some other way?
Thank You!
Perhaps you should check into subclassing the Combo box, capture the drop down, change, or roll up event if needed.
Thank you Mr. sgroner for having a comment on my question.

Can you please explain, what does the term "subclassing the ComboBox" refer to? I cannot undrstand that.
ASKER CERTIFIED SOLUTION
Avatar of Grant082997
Grant082997

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
I was mistaken.  The correct web page for this is http://support.microsoft.com/support/kb/articles/Q171/8/04.asp

Sorry about that.