On my form I have a clear button that is supposed to reset the form back to it's original settings, and as such, I need to de-select any dates a user has selected on my month calendar, but cannot figure out how to do this.
So, is there a way to remove all dates selected by the user on a month calendar?
You can set the Selection start and end to a specific date.
var today = DateTime.Today;
monthCalendar1.SelectionStart = today;
monthCalendar1.SelectionEnd = today;
do you mean something like this: http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar.removeallboldeddates.aspx
Or something like this:
calendar.SetDate(DateTime.Now)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.