[WinForm]将DateTimePicker设置为空值显示

 dtp.Format = DateTimePickerFormat.Custom;
 dtp.CustomFormat = " ";
 dtp.Value = DateTime.FromOADate(0);
 dtp.Text = string.Empty;

image

参考链接:

How can I make a DateTimePicker display an empty string?


<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
展开阅读全文

没有更多推荐了,返回首页