title: Start a C# WinForms application for all loged in users
body: <p>I created a WinForms application that is being start by a scheduled task under the <code>SYSTEM</code> user. The only problem is that it's running in the background. </p>
  
  <p>Is it possible to write a wrapper around the program to get the logged in user and bring it to their desktop?</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  namespace ScheduledTaskTest
  {
      static class Program
      {
          /// &lt;summary&gt;
          /// The main entry point for the application.
          /// &lt;/summary&gt;
          [STAThread]
          private static void Main()
          {
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());
          }
      }
  }
  </code></pre>