DateTimePicker控件为空 分类: WinForm 2014-04-15 09:46 239人阅读 评论(0) 收藏
2024-09-28 14:33:13
设置属性:
Format=Custom
加载事件:ValueChanged
private void dtpStart_ValueChanged(object sender, EventArgs e)
{//日期默认为空
this.dtpStart.CustomFormat = null;
}
在_load事件中:
this.dtpStart.Format = DateTimePickerFormat.Custom;
this.dtpStart.CustomFormat = " ";//中间要有空格
版权声明:本文为博主原创文章,未经博主允许不得转载。
最新文章
- 微信小程序开发—快速掌握组件及API的方法---转载
- 动态设置 button的 name 的话 闪动的问题 解决
- thinkphp中field方法
- homework6-更加简单的题目
- 经典好文:android和iOS平台的崩溃捕获和收集
- C++ Primer 读书笔记 第2章 变量和基本类型
- GDB调试之暂停
- hdu 3572 Task Schedule (dinic算法)
- Let's Encrypt与DNS轮循
- vue中引入swiper(vue中的滑块组件vue-awesome-swiper)
- c# xml操作类 比较齐全
- ubuntu 18.04 配置远程ssh/远程ftp/远程vnc登陆
- tinyproxy代理配置
- Book Sharing
- 远程工作社区|远程工作|APCOW社区|AP社区
- Redis中在程序中的应用
- ElasticSearch 简单入门
- Augular初探
- hadoop2.6.4【windows7】构建maven项目 系列2
- 微信小程序踩坑之一[wx.request]请求模式