title: I cannot use the form which I've opened from Timers.Timer event
body: <p>I am a beginner in C#.
  My idea is to create an application which is checking remote web site and show some form if condition is true. So it checks every 10 second, it should works like a notifier.
  I start  a timer when start my application.</p>
  
  <pre><code>static class Program
  {
       [STAThread]
   static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      TimerEvent timer = new TimerEvent();
      timer.startTimer();
      Application.Run();
   }
  }
  </code></pre>
  
  <p>Then I open the form every 10 second.</p>
  
  <pre><code>class TimerEvent
  {
      public void startTimer()
      {
          System.Timers.Timer aTimer = new System.Timers.Timer();
          aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
  
  
          aTimer.Interval = 10000;
          aTimer.Enabled = true;
      }
      private void OnTimedEvent(object source, ElapsedEventArgs e)
      {
  
          Form1 form = new Form1();
          form.Show();
      }
  }
  </code></pre>
  
  <p>It opens every 10 second new form, but I cannot use it.
  I assuming that I missed something about threading.
  Thanks in advance.</p>
  
  <p><strong>UPDATE</strong>
  Solution for me <a href="http://social.msdn.microsoft.com/Forums/windows/en-US/936c8ca3-0809-4ddb-890c-426521fe60f1/c-open-a-new-form-and-close-a-form?forum=winforms" rel="nofollow">C# open a new form, and close a form</a> </p>