mouse leaving form

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.
 
T

Terry Burns

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 ?
 
A

AinO

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top