title: time reminder application C#
body: <p>I am trying to make an application in C# - visual studio 2010. This application is something like a reminder. You put the note into text box and use <code>DateTimePicker</code> to select when you need to be reminded of things. <br>
  Problem is that I don't know how to do this.</p>
  
  <p>I have selected date and time from DatetimePicker:</p>
  
  <pre><code>dateTimePicker1.Format = DateTimePickerFormat.Custom;
  dateTimePicker1.CustomFormat = "dd/MM/yyyy HH:mm:ss";
  </code></pre>
  
  <p>Now I need to compare time from datetimePicker with current date and time and if the value is the same show a message button with some text.</p>
  
  <p>I am not sure if I may use timer and how to compare these values? Something like this :-)</p>
  
  <pre><code>string timese = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
  string theDay = dateTimePicker1.Value.ToShortDateString();
  
  private void timer1_Tick(object sender, EventArgs e)
  {
      if (theDay == theDay2)
      {
          MessageBox.Show ("Reminder");
      }
  }
  </code></pre>