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