I am trying to build a custom drop down control. Basically, in this case, I have an ActiveX control that has a text box and a down arrow button. When the arrow button is clicked, I want to display a form that is stored in the control. Now I can do this part.
What I need help with is possitioning the form directly under the ActiveX control on the user's form and how to detect if a mouse click was outside of the newely displayed form.
For the sake of this question, the form being opened can be blank. Later i will add various controls to it that will be used to populate the textbox in the activex control.
Anyone have a chunk of code that can popup a form under any given control then hide it if a mouse click happens outside of the popped form?