使用 DateTimePicker 控件显示和选择时间

c# 的DateTimePicker 控件默认显示为“年月日”格式,当我们需要显示时间时可以将Format属性设置为"Time"或者自行设定具体的格式。
但是此时当我们点击右侧的小箭头时弹出的依然是选择日期,我们需要的是选择一个时间。怎么做呢?
只需要:将 DateTimePickerShowUpDown 属性设置为 true即可

msdn详解:http://msdn.microsoft.com/zh-cn/library/ms229631.aspx
posted @ 2009-07-27 11:41  phcis  阅读(7335)  评论(0编辑  收藏  举报