title: Using a timer to do a specific task at 4pm
body: <p>What I'm trying to do is use a timer to keep checking the current time. Once the condition is met. (It's 4pm) then I want to play an audio file. Finally the timer should then stop and nothing should happen until the very next day. </p>
  
  <pre><code>public partial class Form1 : Form
   {
       public Form1()
       {
           InitializeComponent();
       }
  
       const double interv = 1000; 
       System.Timers.Timer xtime = new System.Timers.Timer(interv);
  
       private void Form1_Load(object sender, EventArgs e)
       {
           xtime.Elapsed += new ElapsedEventHandler(checkForTime_Elapsed);
           xtime.Enabled = true;
       }
  
  
       public void xtime _Elapsed(object sender, ElapsedEventArgs e)
       {
  
           DateTime reach = new DateTime(2016, 5, 8, 11, 58, 0);
           DateTime now = DateTime.Now;
  
           if (target.ToString("HH:mm:ss") == now.ToString("HH:mm:ss")
           {
               MessageBox.Show("Your time is up.  GOODBYE");
               xtime.Stop();
               xtime .Enabled = false;
           }
       }
   }
  </code></pre>
  
  <p>With the preceding code nothing happens. </p>
  
  <p>What am I doing wrong? </p>