2015年4月20日

摘要: 在VS2012打包过程中,遇到这个错误,困扰我好几天,后来通过谷歌找到解决方案,如下:Expand the deploy solution (+) on the right panel (Solution Explorer)Expand the menu "Configure the target ... 阅读全文

posted @ 2015-04-20 14:33 言士心 阅读(806) 评论(0) 推荐(0) 编辑


2011年5月1日

摘要: 相信很多朋友希望自己的软件可以非常漂亮,本文就简要介绍一下,对窗体换肤。1、在程序入口处,即Program.cs添加如下代码: DevExpress.UserSkins.OfficeSkins.Register();DevExpress.UserSkins.BonusSkins.Register();2、所应用样式窗体需要继承自DevExpress.XtraEditors.XtraForm;3、添加defaultLookAndFeel1控件;4、在应用窗体调用如下代码:#region 初始化皮肤 private void InitSkin() { BarSubItem bar = new B. 阅读全文

posted @ 2011-05-01 21:00 言士心 阅读(2765) 评论(0) 推荐(0) 编辑

摘要: DevExpress一个非常强大的控件集,相信许多人在使用过后,都不会遗忘它。本文也是我有实际使用过程中,通过网上搜索资料,所总结的。 private void InitData() { DataSet myDs=new DataSet(); //主表 Role role=new Role(); DataTable roleDt = role.GetRoles(); roleDt.TableName = "Role"; myDs.Tables.Add(roleDt); //从表 User user = new User(); DataTable userDt = user. 阅读全文

posted @ 2011-05-01 20:49 言士心 阅读(2073) 评论(0) 推荐(0) 编辑


2010年7月13日

摘要: 1、设置显示编号的宽度 IndicatorWidth设置成所适合大小2、在CustomDrawRowIndicator事件中编写如下代码 #region 设置行号 private void gvUser_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { int rowIndex = e.RowHandle; if(rowIndex>=0) { rowIndex++; e.Info.DisplayText = rowIndex.T 阅读全文

posted @ 2010-07-13 16:20 言士心 阅读(1331) 评论(0) 推荐(0) 编辑


Copyright © 2024 言士心
Powered by .NET 8.0 on Kubernetes