2015年4月20日

在VS2012打包过程中,遇到这个错误,困扰我好几天,后来通过谷歌找到解决方案,如下:

  1. Expand the deploy solution (+) on the right panel (Solution Explorer)
  2. Expand the menu "Configure the target system"
  3. Double click on Shortcuts folder
  4. Here you will find 2 output you set up in the project wizard.
  5. Select one of them, and find the property Icon, click to (...) to browse the propertly icon.
  6. Do the same with the second one output built solution.
  7. Rebuild your project!

 

posted @ 2015-04-20 14:33 言士心 阅读(813) 评论(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 言士心 阅读(2772) 评论(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 言士心 阅读(2090) 评论(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 言士心 阅读(1333) 评论(0) 推荐(0) 编辑


随笔 - 4, 文章 - 0, 评论 - 0, 阅读 - 7008

Copyright © 2025 言士心
Powered by .NET 9.0 on Kubernetes

点击右上角即可分享
微信分享提示