title: Use a Timer to change value periodically
body: <p>Hye there I am new to C# and just want to run a timer manually! So i just want to know what I am doing wrong in my code. I just need to display a simple message inside my timer! my code is:</p>
  
  <pre><code>public partial class Form1 : Form
  {
      System.Timers.Timer time;
  
      public Form1()
      {
          InitializeComponent();
          time = new System.Timers.Timer();
          time.Interval = 10;
          time.Enabled = true;
          time.Start();
      }
  
      private void time_Tick(object e, EventArgs ea)
      {
          for (int i = 0; i &lt; 100; i++)
          {
              Console.WriteLine(i);
          }
      }
  }
  </code></pre>
  
  <p>Please let me know if i am doing something wrong Thanks in advance!</p>