title: Hide Taskbar in Windows 8
body: <p>Up to now, I was able to use the following C# code to hide the Windows taskbar:</p>
  
  <pre><code>[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);
  </code></pre>
  
  <p>But when using Windows 8, this code only hides the taskbar on the primary monitor, not on the second, where the taskbar is also visible. </p>
  
  <p>How may I hide the taskbar only on the screen where my windows are being shown?</p>