*Experts* Bucky Posted June 22, 2003 *Experts* Posted June 22, 2003 I've created a custom control that inherits the LinkLabel control and adds some properties and painting routines. It also responds to the MouseEnter and MouseLeave events of the base control. When the control is used to move the form somewhere else or to minimize the form the MouseLeave event never fires, and then when the form is restored and other controls are hovered over, THEIR MouseLeave events never fire. For every control that becomes "stuck" like this, the MouseEnter event also does not fire. I tried calling MyBase.OnMouseLeave to artifically combat it, but no luck; the control is still waiting for the mouse to officially leave. How can I get the MouseLeave event to fire correctly? Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
*Experts* Bucky Posted June 22, 2003 Author *Experts* Posted June 22, 2003 Ah, I solved the problem with props to VolteFace. For some reason, setting ShowInTaskar to false directly before or after minimizing the form screws up those events. I had completely overlooked the use of Show() and Hide() instead, and they work perfectly. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.