title: How to set a value for DateTimePicker control?
body: <p>I have a DateTimePicker control in form1. I want to set its value in that control from a <code>nvarchar(50)</code> BirthDate field of an Employee table in my DB.</p>
  
  <pre><code>public string EmpBirthDate
  { 
      get { return dateTimePickerBirthDate.Value.ToString(); }
      set { dateTimePickerBirthDate.Value = DateTime.Parse(value); }
  }
  </code></pre>
  
  <p>But, I get this error: </p>
  
  <blockquote>
    <p>'System.Windows.Forms.DateTimePicker' does not contain a definition
        for 'value' and no extension method 'value' accepting a first argument
        of type 'System.Windows.Forms.DateTimePicker' could be found (are you
        missing a using directive or an assembly reference?)</p>
  </blockquote>