title: How to change the datetimepicker value automatically while in progress
body: <p>I want to know is there any way to change the datetimpePicker value while in progress.</p>
  
  <p>I am using this code to go the next day .</p>
  
  <pre><code>                DateTime stdate = new DateTime();
                  stdate = dateTimePicker1.Value;
  
                  while (stdate &lt;= DateTime.Now)
                  {
                      txtSelectedDate.Text = stdate.ToString("yyyyMMdd");
                      selectedDate = Convert.ToInt32(txtSelectedDate.Text);
                      stdate = stdate.AddDays(1);
                  }
  </code></pre>
  
  <p>I want to change the datetimepicker value while in progress automatically because my my code works on date value if i select the date which is not present in the files it does not works , if i change the datetimepicker value which the file haves it works fine.</p>
  
  <p>I want to change the datetimepicker value while in progress automatically.</p>
  
  <p>There would be great appreciation if someone coulde help me.</p>
  
  <p>Thanks In Advance.</p>