I'm writing a C# Windows Form application, and I'm trying to figure out how to hide the form while keeping it active in the windows taskbar.
I've tried setting the Visible property to false and using the Hide()
method, but they hide both the form and the taskbar entry.
I've also tried minimizing the app permanently by setting WindowState
to FormWindowState.Minimized
in the OnLoad
and onResize
events. This works pretty well but when you left-click on the icon in the taskbar, you get a quick flash of the application before it resizes (which is kind of annoying).
Sorry if this question has come up before, but every question that I've seen so far invovles hiding the taskbar completely, or removing the application as a taskbar item (to be replaced by a NotifyIcon
).
Anyone have any ideas? Thanks!