Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

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?

"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*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...