Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I'm about to start drinking (Fresca of course) over this one.
I have a little sample app were I'm attempting to create a control from scratch (i.e. just inherits from System.Windows.Forms.Control) and do all the drawing myself. I currently have code that handles mouse down and if the left button is pushed, I redraw the control, then when the mouse moves up, I redraw again. So far so good...
Until you leave the left mouse button presses and move the mouse OFF the control. Like way off. Like off the form. Like into next week. When the mouse leaves the control, that control continues to get MouseMove event. No mouse events are fired for any other control until the mouse button is released. No mouse leave, not mouse enter on another control, just MouseMove off into the ether.
What I was kind of hoping for would be either:
1. At least the MouseLeave event would fire if the mouse left the control...jeesh.
2. Or the MouseUp would be raised, the MouseLeave on current control, then MouseEnter then MouseDown....something like that.
So, anyone know about this or how to handle it?
|