摘要: DateEdit如果开启Vista模式并显示日期+时间模式 问题,以前没有涉及过,借机看一下,记录如下:设置为Vista显示模式(如下图)设置以下属性dateEdit1.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True;dateEdit1.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True;设置显示长日期模式(日期+时间):dateEdit1.Properties.DisplayFormat.FormatString="g&q 阅读全文
posted @ 2012-08-24 09:52 许海彪 阅读(1223) 评论(1) 推荐(0) 编辑
摘要: Devexpress DateEdit选年月经常遇到需要在WinForm中选择年月的需求,用Devexpress本身的控件DataEdit无法实现,即使设置Mask与Display只显示年月2012-02这种格式,但用户选择起来还是不爽,体验太差。最后我写了一个类,一些代码源自 http://www.devexpress.com/Support/Center/p/CQ60337.aspx效果如下:代码:using Microsoft.VisualBasic;using System;using System.Collections;using System.Collections.Gener. 阅读全文
posted @ 2012-08-24 09:50 许海彪 阅读(2628) 评论(0) 推荐(0) 编辑