title: vb.net - how to set today as a default date for time picker?
body: <p>As the properties Value of the date/time picker does not allow to enter the DateTime.Now default value, I have tried to set it in the code:</p>
  
  <pre><code>Private Sub DataFrom_ValueChanged(sender As System.Object, e As System.EventArgs) Handles DataForm.ValueChanged
  
       DataFrom.Value = DateTime.Now
  
  End Sub
  </code></pre>
  
  <p>It indeed shows the current date on opening the form with the date/time picker.
  However one cannot set any other date from the drop down calendar (one can choose a date, what means that the calendar is dropped down allowing to point a date, but after clicking the choice the date/time picker value returns to the current date).</p>
  
  <p>Thank you in advance for some indications.
  Marek</p>