简体   繁体   English

是否可以在“文本框”中显示日历下拉菜单?

[英]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.

相关问题 在文本框中单击,显示(弹出)日历? - On textbox click ,show(pop up) a calendar? 显示带有派生的DateTimePicker类的自定义日历下拉列表 - Show a custom calendar dropdown with a derived DateTimePicker class 根据文本框值隐藏或显示下拉菜单 - Hide or show dropdown on the basis of textbox value 是否可以通过类显示GUI(面板+文本框)? - is it possible to show GUI (pannel + TextBox) through Class? 在文本框或列表框中是否可以使用不同颜色的文本? - is it possible to have different colors of text in a textbox or listbox? 当用户单击DropDown按钮时,如何不在DateTimePicker中显示日历 - How not to show calendar in the DateTimePicker when user clicks DropDown button 是否有可能在asp.net的下拉菜单中显示工具提示 - Is It possible to show tooltip on dropdown in asp.net 使用jQuery检查单选按钮时如何显示文本框和下拉列表? - How to show a textbox and dropdown when a radiobutton when is checked using jquery? 是否可以让当前活动文本框中的标签显示文本? - Is it possible to have a label display text from the current active textbox? 如果我有一个TextBox是复选框的子项,是否可以输入破折号? - Is it possible to type in dashes if I have a TextBox that is a Child of a Checkbox?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM