利用dateTimePicker來挑選日期:
private void button6_Click(object sender, EventArgs e)
{
SelectionRange sr = new SelectionRange();
sr.Start = dateTimePicker1.Value;
sr.End = dateTimePicker2.Value;
this.monthCalendar1.SelectionRange = sr;
}
請思考如何將挑選的日期加入到listbox內,再一次加入到monthCalendar內
沒有留言:
張貼留言