title: Hide process icon from TaskBar
body: <p>I'm writing a c# program that starts the touch keyboard process.</p>
  
  <pre><code>Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.System) + Path.DirectorySeparatorChar + "osk.exe");
  </code></pre>
  
  <p>I don't want that this process icon is shown in the task bar. The code:</p>
  
  <pre><code>ShowInTaskBar = false;
  </code></pre>
  
  <p>doesn't work because this isn't a Form but a process. How can I achieve this?</p>
  
  <p>EDIT:I saw the example at <a href="https://stackoverflow.com/questions/14726826/hide-icon-of-working-process-in-taskbar">Hide icon of working process in TaskBar</a> and i try to do it in C# but it still doesn't work.</p>
  
  <p>My only doubt is about WS_EX_APPWINDOW because in C# i can't set the value &amp;H40000 to an inttype, so i've looked in the web and i try to set ` const int WS_EX_APPWINDOW = 0x00040000;</p>
  
  <p>howhever the style variable values 0 after call </p>
  
  <pre><code>int style = (GetWindowLong(p.MainWindowHandle, GWL_EXSTYLE) &amp; ~WS_EX_APPWINDOW) ;
  </code></pre>
  
  <p>any ideas?</p>