上一页 1 2 3 4 5 6 7 ··· 11 下一页
该文被密码保护。 阅读全文
posted @ 2014-01-05 01:04 bert.zeng 阅读(4) 评论(0) 推荐(0)
摘要: using DevExpress.XtraEditors.Repository;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WitMS.WinForm{ public partial class Form1 : DevExpress.XtraEditors.Xtra... 阅读全文
posted @ 2013-12-27 00:47 bert.zeng 阅读(1960) 评论(2) 推荐(0)
摘要: (转):一,在bar的属性中有optionbar,可以做一些设置.其中比较有用的是:1,去掉最右边的箭头:allowquickcustomization 改为false2,去掉最左边的竖线:drawdragborder 改为false二,如何使toolbar显示图标方法之一是:放一个imagelist,里面放一些图在toolbar里建立一个barbuttonitem,然后选中这个item,在属性里为其imageindex分配一个imagelist里的图,三,如何使statusbar里的各项可以自定义宽度使用statictext,把autosize改为none,然后即可调整width四,取消右键 阅读全文
posted @ 2013-12-27 00:32 bert.zeng 阅读(535) 评论(1) 推荐(0)
摘要: A.INI文件内容:[DataBase]Server=127.0.0.1User=saPassword=123-------------------------------定义共用方法 public class OperatorFile { [DllImport("kernel32")] //引入“shell32.dll”API文件 public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, ... 阅读全文
posted @ 2013-12-16 20:27 bert.zeng 阅读(679) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-12-13 15:13 bert.zeng 阅读(0) 评论(0) 推荐(0)
摘要: //获取新增行,遍历GridView查找这条记录for (int i = 0; i < dt.Rows.Count; i++){DataRow dr = dt.Rows[i];if (AdviceItemNO == dr["记录编号"].ToString()){gvAdviceItem.FocusedRowHandle = i;}} 阅读全文
posted @ 2013-12-12 23:21 bert.zeng 阅读(334) 评论(0) 推荐(0)
摘要: 虽然有许多第三方控件可以实现ComboBox行间距的设置,但有时候引用太多的第三方控件也是一件麻烦事。其实VisualStudio内置的ComboBox控件稍加控制也能实现“行间距设置”的效果。//设置Comobox的行间距public static void cmbBind(ComboBox list, int itemHeight){list.DropDownStyle = ComboBoxStyle.DropDownList;list.ItemHeight = itemHeight;list.DrawMode = DrawMode.OwnerDrawFixed; list.DrawIte 阅读全文
posted @ 2013-12-09 22:29 bert.zeng 阅读(1371) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-12-05 00:40 bert.zeng 阅读(0) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Text;namespace U1City.Infrastructure{ public class EntityExtension { public static T EntityToEntityByField(object obj, T newObj) where T : class,new() { if (newObj == n... 阅读全文
posted @ 2013-12-04 18:38 bert.zeng 阅读(151) 评论(0) 推荐(0)
摘要: postSharp,INotifyPropertyChanged的AOP植入using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq;using System.Text;using PostSharp.Aspects;using PostSharp.Aspects.Advices;using PostSharp.Extensibility;namespace U1City.Infrastructure.MVP{ [Serializable] [Introdu... 阅读全文
posted @ 2013-12-04 18:33 bert.zeng 阅读(232) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页