title: Why does this code not actually shut down my PC?
body: <p>I'm new so please don't judge too hard.</p>
  
  <p>I want to shut down the pc after the timer ends. But nothing happens.</p>
  
  <p>Just text so I can post this</p>
  
  <pre><code>namespace WindowsFormsApp1  
  {
      public partial class Form3 : Form 
      {
          public Form3()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              int time = int.Parse(textBox1.Text);
  
              timer.Interval = time * 1;
              timer.Start();
          }
  
          private void Form3_FormClosing(object sender, FormClosingEventArgs e)
          {
              Application.Exit();
          }
  
          private void timer1_Tick(object sender, EventArgs e)
          {
              if(timer.Interval.Equals(1))
              {
                  Process.Start("shutdown", "/s /t 0");
              }
          }
      }
  }
  </code></pre>