If you want to find the minimized state for other windows,
[DllImport( "User32.dll" )]
static extern int FindWindow( String ClassName, String WindowName );
[DllImport("User32.dll")]
private static extern bool IsIconic(int hWnd);
usage -
//get the window handle
int hwnd = FindWindow(null,"Some window title");
bool bMinimized = IsIconic(hwnd);
if bMinimized == true //its minimized
--
Shak
(Houston)
"UmmagummA" <fl***@mt.net.mk> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
How can I detect when the user minimize the form (when he/she press the
Mimimaze Box)?