上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
  2012年9月19日
摘要: 代码如下:View Code namespace GridControlDemo{ class MyGridControl : GridControl { protected override BaseView CreateDefaultView() { return CreateView("MyGridView"); } protected override void RegisterAvailableViewsCore(InfoCollection collection) { ... 阅读全文
posted @ 2012-09-19 16:38 freexiaoyu 阅读(1961) 评论(0) 推荐(1) 编辑
  2012年9月14日
摘要: View Code this.gridLookUpEdit1.Properties.DataSource = dt; this.gridLookUpEdit1.Properties.DisplayMember = dt.Columns[2].ColumnName; this.gridLookUpEdit1.Properties.ValueMember = dt.Columns[0].ColumnName; this.gridLookUpEd... 阅读全文
posted @ 2012-09-14 09:29 freexiaoyu 阅读(3773) 评论(0) 推荐(0) 编辑
  2012年9月4日
摘要: 用户自定义控件View Code public partial class GirdViewUserControl : DevExpress.XtraEditors.XtraUserControl { public event EventHandler MyKeyDown; public event EventHandler MyDoubleClick; public GirdViewUserControl() { InitializeComponent(); MyGridView.At... 阅读全文
posted @ 2012-09-04 22:54 freexiaoyu 阅读(5061) 评论(0) 推荐(0) 编辑
摘要: private void textEdit1_KeyDown(object sender, KeyEventArgs e) { string path = Application.StartupPath + "\\" + this.textEdit2.Text.Trim(); if (e.KeyCode == Keys.Enter) { if (!File.Exists(path)) { XtraMessageBox... 阅读全文
posted @ 2012-09-04 09:59 freexiaoyu 阅读(640) 评论(0) 推荐(0) 编辑
  2012年8月29日
摘要: 安装完成devexpress后启动vs提示 devenv.exe - assert failure原因是机器上安装了framework 4.5 和4.5中文包,卸载framework 4.5 后VS启动直接提示未知错误,重新修复了一下就OK了。DEV版本是11.1.4 阅读全文
posted @ 2012-08-29 08:55 freexiaoyu 阅读(8754) 评论(0) 推荐(1) 编辑
  2012年8月27日
摘要: 要做一个服务定时下载信息,首先想到的是timer控件,将timer控件拖到Service1界面中 设置5秒运行一次,双击timer控件写放相应代码,安装上服务后发现定时没有启作用,在网上找了这个Timer控件是winForm下的,不能用在windows服务程序中.你点击timer控件查看属性就可以看到所属命名空间。解决方法是:打开"工具箱"---右键---"选择项"---找到Timer控件, 这个Timer控件的是system.Timers下的. 不是System.Windows.Forms.然后添加.可以看到timer有三个 一个是system.Tim 阅读全文
posted @ 2012-08-27 15:11 freexiaoyu 阅读(374) 评论(0) 推荐(0) 编辑
  2012年8月23日
摘要: 在安装windows服务的时候提示输入用户名和密码原因是权限问题在serviceProcessInstaller1右键属性 Account 改为LocalService在次安装成功,在服务列表中就可以看到自己的服务了。这里的服务名称是Service1 ,右键serviceInstaller1可以查看自己的服务名称。 阅读全文
posted @ 2012-08-23 15:16 freexiaoyu 阅读(2674) 评论(0) 推荐(1) 编辑
摘要: 项目是一个测试的windows服务,转到VS.NET的命令提示符下。cd进入到你程序的Debug文件夹下 输入"InstallUtil xxxx.exe", 这里我的项目是FreeServices 所以输入InstallUtilFreeServices.exe 回车后提示:system.badimageformatexception 未能加载文件或程序集原因是项目CPU默认X86我的系统是X64,将目标平台改为Any CPU就可以了安装服务InstallUtilFreeServices.exe卸载服务InstallUtil /u FreeServices.exe 阅读全文
posted @ 2012-08-23 15:05 freexiaoyu 阅读(7531) 评论(0) 推荐(0) 编辑
  2012年8月21日
摘要: Newtonsoft.Json下载地址http://json.codeplex.com/根据自己的项目生成DLL并引用JSON格式为{"result":"200","info":[{"_cid":5,"_name":"Iphone4","_parentid":2,"_status":true},{"_cid":7,"_name":"手机外套","_parentid&q 阅读全文
posted @ 2012-08-21 16:36 freexiaoyu 阅读(13747) 评论(0) 推荐(4) 编辑
  2012年6月27日
摘要: 原来用过EXT(Coolite)http://www.cnblogs.com/freexiaoyu/category/137975.html, EXT.NET是Coolite的升级版EXT.NET地址:http://www.ext.netCoolite 前缀是cool:EXT.NET是EXT:Coolite 使用控件前页面要加入一个ScriptManager,EXT找了半天也没找到这个原来 是要加入一个<ext:ResourceManager ID="ResourceManager1" runat="server"/>EXT.NET下载后压缩 阅读全文
posted @ 2012-06-27 15:59 freexiaoyu 阅读(931) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页