title: How to display seconds using TimeSpan on Timer Tick Event
body: <p>I am using below code to display time left in <code>hh:mm:ss</code> format for example if duration is <code>30min</code>, it will show like this <code>00:30:00</code> and after 1 min it will show <code>00:29:00</code>, how can i also display the remaining seconds and decrease them accordingly.,</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I tried <code>timer1.Interval = 1000;</code> and<br>
  <code>examTime = examTime.Subtract(TimeSpan.FromSeconds(1));</code> </p>
  
  <p>But its not showing me seconds reducing each second, How do i do it ?</p>
  
  <pre><code>        public SubjectExamStart()
          {
              InitializeComponent();
  
               examTime = TimeSpan.FromMinutes(double.Parse(conf[1]));
                      label1.Text = examTime.ToString();
                      timer1.Interval = 60 * 1000;
                      timer1.Start();
           }
  
          private void timer1_Tick(object sender, EventArgs e)
          {
              if (sender == timer1)
              {
                  if (examTime.TotalMinutes &gt; 0)
                  {
                      examTime = examTime.Subtract(TimeSpan.FromMinutes(1));
                      label1.Text = examTime.ToString();
                  }
                  else
                  {
                      timer1.Stop();
                      MessageBox.Show("Exam Time is Finished");
                  }
              }
          }
  </code></pre>