How can I remove the “Today” button from DateTimePicker control (of Windows form Control)

前端 未结 2 1705
长发绾君心
长发绾君心 2020-12-15 14:35

In the DateTimePicker control, when we click the dropdown button , a calendar gets displayed . at the bottom of the calendar , there is a button : Today , which on being cli

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 15:08

    I seem to recall wanting to modify this control myself a while ago, and finding out that it is not possible. The solution was to build your own custom control.

    If it helps, I did find this Show a custom calendar dropdown with a derived DateTimePicker class, which links to a custom Winforms calendar Culture Aware Month Calendar and DatePicker.

提交回复
热议问题