So far, I could use the following C # code to hide the Windows taskbar:
[DllImport("user32.dll")] private static extern int FindWindow(string className, string windowText); [DllImport("user32.dll")] private static extern int ShowWindow(int hwnd, int command); private const int SW_HIDE = 0; private const int SW_SHOW = 1; ... int hwnd = FindWindow("Shell_TrayWnd", ""); ShowWindow(hwnd, SW_SHOW);
But when using Windows 8, this code hides the taskbar on the main monitor, and not on the second one, where the taskbar is also visible.
How to hide the taskbar only on the screen where my windows are displayed?
source share