[英]Is it possible to have a Textbox show calendar dropdown?
Without place a TextBox over a Calendar control and hiding/showing controls and synchronizing values between controls, is it possible to have a Textbox and a button next to it, that when clicked, shows the calendar dropdown? 如果没有在日历控件上放置文本框,隐藏/显示控件以及在控件之间同步值,是否有可能在其旁边有一个文本框和一个按钮,当单击该按钮时,它会显示日历下拉菜单?
I would use the DateTimePicker
control, however I want to set the value to NULL
without having to show & use the checkbox. 我将使用DateTimePicker
控件,但是我想将值设置为NULL
而不必显示和使用复选框。
I also want that the control is empty without any default date which is grayed out. 我还希望控件为空,而没有任何默认日期显示为灰色。
Implementing a custom control based on this answer is trivial, but I was wondering if a calendar dropdown can be shown without the need to have a hidden DateTimePicker
. 基于此答案实现自定义控件是微不足道的,但是我想知道是否可以显示日历下拉列表而无需具有隐藏的DateTimePicker
。
这几乎是DateTimePicker
的定义...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.