I'm basically trying to implement a simple drop down menu list for a button that I have. When the user hovers over the button, I want a list of button options to appear below the button. If the users mouse leaves the button, or the buttons in the list I want the list to disappear.
I originally tried to place all of the drop down buttons into a single user control, and to then have them appear when users enter some button and disappear when the user leaves the button and drop down menu, but this doesn't work because the user control doesn't get the bubbled events. Instead the buttons in the menu intercept the events.
So then I decided that I could try to still work around this if I could get the mouse position in the mouse enter / leave events. I tried to do this by using PointToClient(Control.MousePosition). The values I'm getting though for the mouse position in screen space in my mouse leave events seem to be totally messed up though.
Does anyone have any ideas on how I can try to fix either the bubbling issue, or how to fix the mouse position? Thanks!