469,950 Members | 1,883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

mouse leaving form

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.
Nov 17 '05 #1
3 2380
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 ?

--
Terry Burns
http://TrainingOn.net
"AinO" <no*****@please.com> wrote in message
news:PN**********************@phobos.telenet-ops.be...
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.

Nov 17 '05 #2
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

"Terry Burns" <he**@now.com> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
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 ?

--
Terry Burns
http://TrainingOn.net
"AinO" <no*****@please.com> wrote in message
news:PN**********************@phobos.telenet-ops.be...
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.


Nov 17 '05 #3

http://www.thescarms.com/dotNet/IrregularForm.asp
--
Terry Burns
http://TrainingOn.net
"AinO" <no*****@please.com> wrote in message
news:CM**********************@phobos.telenet-ops.be...
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

"Terry Burns" <he**@now.com> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
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 ?

--
Terry Burns
http://TrainingOn.net
"AinO" <no*****@please.com> wrote in message
news:PN**********************@phobos.telenet-ops.be...
> 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.
>
>



Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by William Bub | last post: by
4 posts views Thread by Michele Diegoli | last post: by
1 post views Thread by Jeroni Paul | last post: by
1 post views Thread by Jean-Gael GRICOURT | last post: by
1 post views Thread by Bill nguyen | last post: by
3 posts views Thread by =?Utf-8?B?Vk1BTQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.