How to set win forms datetime picker to have no default value?

后端 未结 5 2130
你的背包
你的背包 2021-01-20 00:25

I am implementing search functionality in WinForms and I search by date range. Thus there are dateForm and dateTo date pickers on the form. By default their values are date

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-20 00:49

    Put a check box next to each datetime picker, and use the check box to enable/disable the datetime picker.

    So if the datetimepicker is disabled, you know the user do not want to specify the datetime.

提交回复
热议问题