首页 > Windows开发 > 详细

C# 控件 DevExpress的DateEdit设置显示日期和时间

时间:2017-01-20 11:21:24      阅读:1465      评论:0      收藏:0      [点我收藏+]

标签:bool   vista   edit   his   format   efault   boolean   ++   spl   

this.dateEdit1.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm";
this.dateEdit1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit1.Properties.EditFormat.FormatString = "yyyy-MM-dd HH:mm";
this.dateEdit1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit1.Properties.Mask.EditMask = "yyyy-MM-dd HH:mm";

this.dateEdit1.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True;
this.dateEdit1.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True;

this.dateEdit1.Properties.VistaTimeProperties.DisplayFormat.FormatString = "HH:mm";
this.dateEdit1.Properties.VistaTimeProperties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit1.Properties.VistaTimeProperties.EditFormat.FormatString = "HH:mm";
this.dateEdit1.Properties.VistaTimeProperties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit1.Properties.VistaTimeProperties.Mask.EditMask = "HH:mm";

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

this.dateEdit2.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm";
this.dateEdit2.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit2.Properties.EditFormat.FormatString = "yyyy-MM-dd HH:mm";
this.dateEdit2.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.dateEdit2.Properties.Mask.EditMask = "yyyy-MM-dd HH:mm";
this.dateEdit2.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True;
this.dateEdit2.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True;

 

C# 控件 DevExpress的DateEdit设置显示日期和时间

标签:bool   vista   edit   his   format   efault   boolean   ++   spl   

原文:http://www.cnblogs.com/yunxiaguo/p/6321970.html

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!