title: How can I hide the taskbar in Windows 10
body: <p>I am currently making a deployment program in VB.net and I am having trouble hiding the taskbar. My code works in Windows 7, but it does not seem to work after the Windows 10 upgrade. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>Imports system.Runtime.InteropServices
  Public Partial Class MainForm
  Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
  Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
  
  Public Const SWP_HIDEWINDOW = &amp;H80
  Public Const SWP_SHOWWINDOW = &amp;H40
  </code></pre>
  
  <p>And to hide it, I do:</p>
  
  <pre><code>Dim intReturn As Integer = FindWindow("Shell_traywnd", "")
  SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
  </code></pre>