Hide the Taskbar

  • Thread starter Thread starter Ken Beauchesne
  • Start date Start date
K

Ken Beauchesne

Can someone tell me how to disable and hide the taskbar using C#

Thanks
Ken Beauchesne
 
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);
 
Back
Top