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

问题描述

我有一个日期时间选择器 

 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

解决方案

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

解决方案


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

08-20 21:30