如何在C#中获取MonthCalendar控件的选定日期 [英] How to get the selected date of a MonthCalendar control in C#
本文介绍了如何在C#中获取MonthCalendar控件的选定日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C#(窗口窗体)中获取MonthCalendar控件的选定日期
How to get the selected date of a MonthCalendar control in C# (Window forms)
推荐答案
"只需将 MaxSelectionCount
设置为1,以使用户不能选择超过一天.然后在 SelectionRange.Start中.ToString()
.没有可用的内容显示只有一天的选择."-贾斯汀·埃瑟里奇(Justin Etheredge)
"Just set the MaxSelectionCount
to 1 so that users cannot select more than one day. Then in the SelectionRange.Start.ToString()
. There is nothing available to show the selection of only one day." - Justin Etheredge
从此处.
这篇关于如何在C#中获取MonthCalendar控件的选定日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文