title: Want to change DateTimePicker.Value.TimeOfDay, but it is read only
body: <p>I am trying to check an entered time in a DateTimePicker control and correct it to the closest acceptable value in C#</p>
  
  <pre><code>if (Summer1.Value.TimeOfDay &gt; Summer2.Value.TimeOfDay)
                  Summer1.Value.TimeOfDay = Summer2.Value.TimeOfDay;
  </code></pre>
  
  <p>It gives me the following:</p>
  
  <blockquote>
    <p>Property or indexer 'System.DateTime.TimeOfDay' cannot be assigned to
    -- it is read only</p>
  </blockquote>
  
  <p>Why does it handle the DateTimePicker object as a system time?
  I could not find anything related to Read-Only state of the control in VS 2003. </p>