title: Set foreground window on Windows 8
body: <p>I've read about a few ways to force a window to be displayed on the foreground with C#, making use of Win32's user32.dll.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/6228089/how-do-i-bring-an-unmanaged-application-window-to-front-and-make-it-the-active">How do I bring an unmanaged application window to front, and make it the active window for (simulated) user input</a></li>
  <li><a href="https://shlomio.wordpress.com/2012/09/04/solved-setforegroundwindow-win32-api-not-always-works/" rel="nofollow noreferrer">https://shlomio.wordpress.com/2012/09/04/solved-setforegroundwindow-win32-api-not-always-works/</a></li>
  </ul>
  
  <p>These work perfectly, except for one situation.
  On Windows 8, if either the Start Menu or a Windows Store App is on the foreground, these will fail.</p>
  
  <p>I only need to make this work when the Start Menu is on the foreground though.
  Is there an hidden way to accomplish this?</p>