Solved

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

Posted on 1997-11-07
9
196 Views
Last Modified: 2008-03-06
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
Comment
Question by:Khawar091697
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 3

Expert Comment

by:ESI
ID: 1440113
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
 

Author Comment

by:Khawar091697
ID: 1440114
Edited text of question
0
 

Author Comment

by:Khawar091697
ID: 1440115
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 3

Expert Comment

by:ESI
ID: 1440116
Try the SelChange event then
0
 

Author Comment

by:Khawar091697
ID: 1440117
But DBCombo don't have such event as SelChange? Kindly tell me some other way?
Thank You!
0
 
LVL 1

Expert Comment

by:Steve Groner
ID: 1440118
Perhaps you should check into subclassing the Combo box, capture the drop down, change, or roll up event if needed.
0
 

Author Comment

by:Khawar091697
ID: 1440119
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
 

Accepted Solution

by:
Grant082997 earned 20 total points
ID: 1440120
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
 

Expert Comment

by:Grant082997
ID: 1440121
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question