Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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
0
Khawar091697
Asked:
Khawar091697
  • 4
  • 2
  • 2
  • +1
1 Solution
 
ESICommented:
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
0
 
Khawar091697Author Commented:
Edited text of question
0
 
Khawar091697Author Commented:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ESICommented:
Try the SelChange event then
0
 
Khawar091697Author Commented:
But DBCombo don't have such event as SelChange? Kindly tell me some other way?
Thank You!
0
 
Steve GronerLead Systems EngineerCommented:
Perhaps you should check into subclassing the Combo box, capture the drop down, change, or roll up event if needed.
0
 
Khawar091697Author Commented:
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.
0
 
Grant082997Commented:
If you are using the DBCombo that came with VB5, then you should install service pack 2.  This corrects the problem of the DBCombo_Change event not firing.

For more info, check out http://support.microsoft.com/support/kb/articles/Q171/7/98.asp
0
 
Grant082997Commented:
I was mistaken.  The correct web page for this is http://support.microsoft.com/support/kb/articles/Q171/8/04.asp

Sorry about that.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now