C # form Not minimized in Microsoft windows when workstation is locked

In my application, I need to minizime into the tray (do things like visible = false, FormWindowState = minimized, etc.) automatically after a while.

The problem is that when Windows is blocked when this code is executed, it does not happen (I assume that although Windows is locked, all forms operations do not happen or something like that)

Does anyone know what I can do?

+4
source share
2 answers

Refer to this question: How can I programmatically determine if my workstation is locked?

When your application needs to collapse to the tray, set the flag. When the session is unlocked, check the flag and, if it is set, perform minimization again.

+3
source

The easiest way to do this is to run a time-consuming task with BackGroundWorker , so your user interface remains responsive.

0
source

All Articles