设置属性:

                Format=Custom





加载事件:ValueChanged

   private void dtpStart_ValueChanged(object sender, EventArgs e)

        {//日期默认为空

            this.dtpStart.CustomFormat = null;

        }



在_load事件中:

            this.dtpStart.Format = DateTimePickerFormat.Custom;

            this.dtpStart.CustomFormat = "  ";//中间要有空格

版权声明:本文为博主原创文章,未经博主允许不得转载。

最新文章

  1. 微信小程序开发—快速掌握组件及API的方法---转载
  2. 动态设置 button的 name 的话 闪动的问题 解决
  3. thinkphp中field方法
  4. homework6-更加简单的题目
  5. 经典好文:android和iOS平台的崩溃捕获和收集
  6. C++ Primer 读书笔记 第2章 变量和基本类型
  7. GDB调试之暂停
  8. hdu 3572 Task Schedule (dinic算法)
  9. Let's Encrypt与DNS轮循
  10. vue中引入swiper(vue中的滑块组件vue-awesome-swiper)
  11. c# xml操作类 比较齐全
  12. ubuntu 18.04 配置远程ssh/远程ftp/远程vnc登陆
  13. tinyproxy代理配置
  14. Book Sharing
  15. 远程工作社区|远程工作|APCOW社区|AP社区
  16. Redis中在程序中的应用
  17. ElasticSearch 简单入门
  18. Augular初探
  19. hadoop2.6.4【windows7】构建maven项目 系列2
  20. 微信小程序踩坑之一[wx.request]请求模式

热门文章

  1. Linux fork操作之后发生了什么?又会共享什么呢?
  2. jquery的select元素和option的相关操作
  3. ComboBoxEdit
  4. js 表达式与运算符 详解(下)
  5. 项目知识点.Part3
  6. linux中硬盘及网卡的表示方法
  7. 3、MyBatis.Net学习笔记之增删改
  8. oracle 查询dblink的方法
  9. HTML入门教程(全套)
  10. python operator模块