How to prevent the taskbar button from disappearing when the form is hidden


How to prevent Taskbar button disappearing when the only form of application is hidden?

My application has one always on top form, but sometimes I need to hide it, but still keep Taskbar button visible. Taskbar button is used to control the product.

Taskbar buttons are not shown for hidden windows. So, if the taskbar button is associated with your main form's window, and you hide that form, then the taskbar button will be hidden.

So, I guess the easiest thing to do would be to stop hiding the main form. Use Application.Minimize, or WindowState := wsMinimized instead.