Detect if the mouse was clicked outside of a control

sarthemaker

Active member
Joined
Sep 4, 2009
Messages
36
Programming Experience
5-10
I'm trying to make a custom drop down menu, but I need the control to detect if I have clicked anywhere outside of it to make the drop down menu disappear. does anyone know how I would go about doing this?
 
How about using the controls LostFocus event triggered when clicked outside of the control to execute your code to collapse your expanded menu.
 
Back
Top