monthCalendar to start with - 1?

  • Thread starter Thread starter gsb58
  • Start date Start date
G

gsb58

Hi!

Anybody that have seen an example of how to have the monthCalendar1
start with yesterdays date?

That is: when the form opens, I'd like to have yesterdays date
selected.

Me.Name
 
Something like this would work:

DateTime yesterday = DateTime.Today.AddDays(-1);
monthCalendar1.SelectionRange = new SelectionRange(yesterday,
yesterday);

Thi
 
Back
Top