title: I want to change backcolor every 1 second in winform using timer
body: <p>I want to change backgroundcolor every 1 second using timer in winform. For example Red -> SystemColors.Control -> red -> SystemColors.Control ->..</p>
  
  <p>I have menuitem in mainUI. So when I click this control, I want to see automatically changing of mainUI's background color.</p>
  
  <p>Here is code what I wrote. what should I change in this code?</p>
  
  <pre><code>private void RadMenuItem9_Click(object sender, EventArgs e)
  {
      System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
      timer.Enabled = true;
      timer.Interval = 2000;
      timer.Tick += new EventHandler(Timer1_Tick);
      timer.Start();
  }
  
  private void Timer1_Tick(object sender, EventArgs e)
  {
      BackColor = Color.Red;
      Thread.Sleep(1000);
      BackColor = SystemColors.Control;
  }
  </code></pre>