mouse leaving form

  • Thread starter Thread starter AinO
  • Start date Start date
A

AinO

Hi,

(VS2003/c# - System.Windows.Forms)

Is there a way to know (have an event triggered) if the mouse leaves a form,
if this form's client area is completly
covered with child controls ?

I tried various mouse move/leave event handling scenario's involving the
form or the controls on it's client area but no
succes. Actually there are no mouse move/leave events triggered for the form
when it's client area is completly covered (even when i go along it's
borders or it's title bar), so i needed to work with events from it's child
controls. But when
you have for example a panel at the bottom and you move your mouse fast
enough downwards (under the form), there
is even no mouse leave event for that panel.

Thank in advance for your comments,

AinO.
 
One possible way to tackle this problem is by the use of irregular shaped
forms. You in essence create a form with a vertually transparent border so
it appears that the form is there with a visible size but in reality, the
form is slightly larger, this might do it ?
 
Your solution interests me, also for other purposes ... can you please give
me a direction or a hint
in how to construct such a irregular shaped form (with the title bar as wide
as the visible area) ?

Thank you,

AinO
 
Back
Top