Re: MouseLeave fired on childs controls, This does not have thus to be. by Gabriele
Gabriele
Wed Nov 22 14:12:41 CST 2006
One possible workaround is to check if the mouse is in fact outside the user
control area when the MouseLeave event is raised.
private void ContainerInfo_MouseLeave( object sender, EventArgs e )
{
if( !this.ClientRectangle.Contains( PointToClient(
Control.MousePosition ) ) )
{
// handle the event here
}
}
"Alvaro E. Gonzalez" <AGonzalezv@gmail.com> wrote in message
news:4564A5A6.7020603@gmail.com...
> Hi;
>
> A UserControl named ContainerInfo has children controls;
> ContainerInfo also has the MouseLeave event.
> But one goes off when the cursor of the mouse is in a children control .
> This does not have thus to be, by a contracted being in ContainerInfo
> mouse has not left this.
>
> What I must do?
> Regards
> Alvaro.
>