There may be a way to do it using the API, but there isn't a direct way, since the Combo Box for reasons unknown to most doesn't support the MouseUp and MouseDown events. However, the DBCombo control does. So, use the DBCombo box instead, and use the MouseUp event. (Don't use the MouseDown event; if you need convincing of this, try rightclicking anywhere on this page and see if the menu pops up when the mouse button goes down or when it goes up.) Evaluate the Button argument and if [tt]Button = vbRightButton[/tt] then do what you're going to do.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.