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
2010-01-05 12:48:01
i have to monitor other application activity not my application
JKS
2010-01-05 12:50:08
@Suriyan: So, elaborate it in your question. Be more clear if you want a prompt answer.
serhio
2010-01-05 13:21:46
+3
A:
Use example from here http://pinvoke.net/default.aspx/user32.EnumDesktopWindows then just check window state
alemjerus
2010-01-05 12:53:41
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
2010-01-05 16:49:02