Use the Form.Deactivate event:
this.Deactivate += new EventHandle(OnDeactivate);
//...
private void OnDeactivate(object s, EventArgs e)
{
this.Close();
}
(from [email protected] on microsoft.public.dotnet.framework.windowsforms)
Use the Form.Deactivate event:
this.Deactivate += new EventHandle(OnDeactivate);
//...
private void OnDeactivate(object s, EventArgs e)
{
this.Close();
}
(from [email protected] on microsoft.public.dotnet.framework.windowsforms)
Share with