title: FindWindow and SetForegroundWindow alternatives?
body: <p>I am searching for alternatives to the old <code>User32.dll</code> version of switching to a different application with <code>FindWindow()</code> and <code>SetForegroundWindow()</code>.</p>
  
  <p>I did find an alternative to the first with the usage of <code>Process.GetProcessesByName()</code> but I do not see the corresponding method to switch (set active/foreground) to that application.</p>
  
  <p>Is there a way of doing that without using the <em>old</em> way with the <code>User32.dll</code>?</p>
  
  <p>Thank you for your help.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I accepted the answer of @Sorceri although it is not the answer I was looking for.</p>