title: how to identity if user clicked on a date in DateTimePicker calendar
body: <p>I don't want the date to change when user clicks out of the calender without clicking on a date. The problem is One Date is always selected when the datepickercalendar opens up. I am looking for something similar to DateSelected event in the Calender control </p>
  
  <p>I have a class that derives from DateTimePicker which uses custom format with a spacechar string for to have empty field for DateTimePicker. </p>
  
  <p>I found an article in stackoverflow with same issue but the solution doesnot work. I don't have enough points to place comments either (unable to find the link now :( )</p>
  
  <p>As far as code this is what i have</p>
  
  <pre><code>Public Class CustomDP
      Inherits System.Windows.Forms.DateTimePicker
  
      Public Sub New()
          CustomFormat = " "
          Format = System.Windows.Forms.DateTimePickerFormat.Custom
      End Sub
  
      Protected Overrides Sub OnValueChanged(eventargs As System.EventArgs)
          MyBase.OnValueChanged(eventargs)
      End Sub
  
      Protected Overrides Sub OnCloseUp(eventargs As System.EventArgs)
          Format = DateTimePickerFormat.Short
          MyBase.OnCloseUp(eventargs)
      End Sub
  
      Protected Overrides Sub OnDropDown(eventargs As System.EventArgs)
          Format = DateTimePickerFormat.Custom
          MyBase.OnDropDown(eventargs)
      End Sub
  End Class
  </code></pre>