J
JezB
I'm overriding OnMouseLeave at Form level:
protected override void OnMouseLeave(EventArgs e)
{
this.Close();
}
The purpose of this, as you may suspect, is to close the form when the user
moves the mouse off it. However, this seems to fire whenever the mouse moves
over any control on the form, I imagine because the mouse is "leaving" the
form's base surface.
How can I do what I'm trying to do ?
protected override void OnMouseLeave(EventArgs e)
{
this.Close();
}
The purpose of this, as you may suspect, is to close the form when the user
moves the mouse off it. However, this seems to fire whenever the mouse moves
over any control on the form, I imagine because the mouse is "leaving" the
form's base surface.
How can I do what I'm trying to do ?