I am writing a C # Windows Forms application. How to hide a form while saving it in the Windows taskbar ?
I tried to set the property Visibleto false and use the method Hide(), but they hide both the form and the taskbar entry.
I also tried to minimize the application forever by installing WindowStatein FormWindowState.Minimizedin events OnLoadand onResize. This works very well, but when you left-click on the icon on the taskbar, you will get a quick flash of the application before it changes (which is annoying).
Sorry if this question arose earlier, but every question that I have seen so far hides the taskbar completely or removes the application as an element of the taskbar (replaced by NotifyIcon).
How to fix this problem?
source
share