views:

269

answers:

4

how to detect all windows(of other applications) minimized from c# application

A: 

For Windows Forms you can look at the property WindowState on the Form object. Minimized windows will have a state of FormWindowState.Minimized.

jbloomer
i have to monitor other application activity not my application
JKS
@Suriyan: So, elaborate it in your question. Be more clear if you want a prompt answer.
serhio
A: 

Use GetWindowState() WinAPI function

alexm
+3  A: 

Use example from here http://pinvoke.net/default.aspx/user32.EnumDesktopWindows then just check window state

alemjerus
A: 

If you want to monitor what's going on in the system, then you want to set up a CBT Hook. That will keep you notified when windows are created, destroyed, minimized, maximized, moved, activated, etc etc.

danbystrom