G
Guest
Hi all,
I'm having some trouble with the Mouse Hover/Leave events on a user
control.
Say I have a user control with a panel covering the whole control. In turn,
a label + picture box cover the panel.
If the mouse is anywhere over the user control, I want the background
colour to change.
I tried handling the user control's mouse hover/leave events but it is not
being picked up. It seems the controls ontop are intercepting the event.
Do I have to loop through all the controls and add a handler? Is that the
best way?
Is there a way to make the User Control intercept the mouse hover/leave
events first before the controls ontop?
Thanks!
I'm having some trouble with the Mouse Hover/Leave events on a user
control.
Say I have a user control with a panel covering the whole control. In turn,
a label + picture box cover the panel.
If the mouse is anywhere over the user control, I want the background
colour to change.
I tried handling the user control's mouse hover/leave events but it is not
being picked up. It seems the controls ontop are intercepting the event.
Do I have to loop through all the controls and add a handler? Is that the
best way?
Is there a way to make the User Control intercept the mouse hover/leave
events first before the controls ontop?
Thanks!