如何将日期时间选择器值设为空 [英] how can I make the datetime picker value with empty

查看:84
本文介绍了如何将日期时间选择器值设为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日期时间选择器 

 this.dtSold.CustomFormat ="英寸; 
this.dtSold.Location = new System.Drawing.Point(739,223);
this.dtSold.Name =" dtSold" ;;
this.dtSold.ShowCheckBox = true;
this.dtSold.Size = new System.Drawing.Size(200,22);
this.dtSold.TabIndex = 22;

当我取消日期时间选择器的showcheckbox时,如何使日期时间选择器为空值。


谢谢


Pol





polachan

解决方案

嗨Pol,


感谢您在MSDN论坛上发帖。


您的线程是否已解决?


#Combo Box无效。当我从组合框中选择值时,它不会从组合框中选择


https://social.msdn.microsoft.com/Forums/office/en-US/070ce80d-a3fe-478b-a0f7-cfab8209674b/combo-box-is-not-working-when-i-select- value-from-combo-box-it-not-selected-from-combo-box?forum = accessdev


#如何在访问数据库中显示图片如何以另一种形式有条件地展示


HTTPS://social.msdn .microsoft.com /论坛/办公室/ EN-US / 92dc7d4e-d55c-4535-b5b2-22ba82094520 /如何对表演 - 画中的存取数据库和知识,可以待显示,有条件-在-another-form?forum = accessdev


如果有的话,如果您能与我们分享您的解决方案,或者将有用的回复标记为答案,那么将不胜感激。在这里关闭线程。


问候,


Tony


I have a datetime picker 

this.dtSold.CustomFormat = " ";
            this.dtSold.Location = new System.Drawing.Point(739, 223);
            this.dtSold.Name = "dtSold";
            this.dtSold.ShowCheckBox = true;
            this.dtSold.Size = new System.Drawing.Size(200, 22);
            this.dtSold.TabIndex = 22;

How can I make the datetime picker with empty value when I untick showcheckbox of the datetime picker.

With Thanks

Pol


polachan

解决方案

Hi Pol,

Thanks for posting in MSDN Forum.

Have your threads below resolved?

#Combo Box is not working . When I select value from Combo box , It is not selected from Combo box

https://social.msdn.microsoft.com/Forums/office/en-US/070ce80d-a3fe-478b-a0f7-cfab8209674b/combo-box-is-not-working-when-i-select-value-from-combo-box-it-is-not-selected-from-combo-box?forum=accessdev

#How to show picture in an access database and how can be showed conditionally in another form

https://social.msdn.microsoft.com/Forums/office/en-US/92dc7d4e-d55c-4535-b5b2-22ba82094520/how-to-show-picture-in-an-access-database-and-how-can-be-showed-conditionally-in-another-form?forum=accessdev

If they have, it would be appreciated if you could share us your solution, or mark the helpful reply as answer which is the way to close thread here.

Regards,

Tony


这篇关于如何将日期时间选择器值设为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆