如何给DateTimePicker这个控件在窗体显示时的值为空? 本帖最后由 Vip_Mr_xu 于 2010-08-05 15:43:33 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 直接 this.dateTimePicker1.Text = "";不就可以吗?要这么复杂吗? this.dateTimePicker1.value=null;或="";应该是这样 在Load中,初始化 this.dateTimePicker1.Format=DateTimePickerFormat.Custom; his.dateTimePicker1.CustomFormat=" "; 在事件里写: private void dateTimePicker1_ValueChanged(object sender, System.EventArgs e) { //this.dateTimePicker1.Format=DateTimePickerFormat.Long; this.dateTimePicker1.CustomFormat=null; } testvalue 要是都不行那就是RP问题 如何调用父类的父类的方法 WPF expander数据绑定问题 初学c#,简单问题,连接数据库 js 传值问题```` Windows程序中是否存在asp.net2.0中DetailsView类似的控件 一个String.Format的错误? 如何去掉Winform中DataGrid上部默認的的藍色區域? 枕戈待旦,十万火急关于C#类库问题 C# 和 Managed DirectX 9.0c SDK 怎么配合画3D图 C#创建web应用初级问题 Winform 绘制数字电子码表 textbox.lins=new string[]的问题?
应该是这样
this.dateTimePicker1.Format=DateTimePickerFormat.Custom;
his.dateTimePicker1.CustomFormat=" ";
在事件里写: private void dateTimePicker1_ValueChanged(object sender, System.EventArgs e)
{
//this.dateTimePicker1.Format=DateTimePickerFormat.Long;
this.dateTimePicker1.CustomFormat=null; }
value
要是都不行
那就是RP问题