How to make window appear in taskbar?
问题 A window is not showing in the task bar, only in the system tray. How can I make it show up in the taskbar as well? I tried the following code, but it had no effect: int windowStyle = GetWindowLong(pMainWindow, GWL_EXSTYLE); SetWindowLong(pMainWindow, GWL_EXSTYLE, windowStyle & WS_EX_TOOLWINDOW); And, this is NOT my form! I'm getting the handle from Process.GetProcessesByName and I don't know how to access properties of the Form class: Process[] processes = Process.GetProcessesByName(