How can i detect form minimized event.

  • Thread starter Thread starter Suhail Salman
  • Start date Start date
With the FormWindowState-Enumeration!
The default value of FormWindowState is 'Normal'.
If the form is minimized this value is 'Minimized'.

WindowState = FormWindowState.Minimized;
if (this.WindowState.ToString() == "Minimized") {
...
}
 
Suhail Salman said:
how can i know if my form is minimized by the user?

You can check the form's 'WindowState' properts in the form's 'Resize' event.
 
Back
Top