Code on Combo Box

PegasusBR

New member
Local time
Today, 18:07
Joined
Oct 3, 2003
Messages
8
Does anyone have an idea on how to capture the event of clicking on the down-arrow of a combo box. I don't want my code to trigger on the Enter, Exit, or Change events but ONLY if the user clicks the down arrow.

Thanks.
 
You could use the Mouse Down Event of the Combo Box and use the X parameter and the Combobox's Width property to determine if the user clicked on the Arrow.
 
Thanks! I was able to use that to accomplish my goal.

Since my combo box was in a datasheet and the column width could be changed by the user, I tested until I determined that the width of the "arrow" is about 240 twips. So I can test the X value and if it is between (columnwidth-240) and (columnwidth) the code is executed.
 

Users who are viewing this thread

Back
Top Bottom