K Ken Beauchesne Jul 20, 2004 #1 Can someone tell me how to disable and hide the taskbar using C# Thanks Ken Beauchesne
S Shakir Hussain Jul 20, 2004 #2 Try this [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; Usage - int hwnd = FindWindow("Shell_TrayWnd",""); ShowWindow(hwnd,SW_HIDE);
Try this [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; Usage - int hwnd = FindWindow("Shell_TrayWnd",""); ShowWindow(hwnd,SW_HIDE);