C# 选择MonthCalendar中的特定日期
是否可以使用变量自动定位月历中的某个日期C# 选择MonthCalendar中的特定日期,c#,date,select,monthcalendar,C#,Date,Select,Monthcalendar,是否可以使用变量自动定位月历中的某个日期 DateTime example = Convert.ToDateTime("01/01/2014"); //Automatically select 1 January 2014 in the calendar //(i.e. The date corresponding to the example variable above) 使用方法 你希望它什么时候被触发?每个系统都在滴答作响?“自动”是一个非常松散的术语,您缺少一些研究工作 DateT
DateTime example = Convert.ToDateTime("01/01/2014");
//Automatically select 1 January 2014 in the calendar
//(i.e. The date corresponding to the example variable above)
使用方法
你希望它什么时候被触发?每个系统都在滴答作响?“自动”是一个非常松散的术语,您缺少一些研究工作
DateTime example = Convert.ToDateTime("01/01/2014");
monthCalendar.SetDate(example);