随笔分类 -  C#

偶遇 Lc.exe已退出代码为-1
摘要:运行或重新编译时,报错如题。解决方法:新建一文本,重命名为licenses.licx,替换项目的Properties文件夹下同名文件。 阅读全文

posted @ 2013-05-26 10:12 龙少爷 阅读(182) 评论(0) 推荐(0)

Nunit2.6.2调试.net4类库
摘要:调试类库的时候,发现不能调试断点故障的解决:1、在Nunit的安装目录下,打开nunit.exe.config,文件内容如下:<?xml version="1.0" encoding="utf-8"?><configuration> <!-- The GUI only runs under .NET 2.0 or higher. The useLegacyV2RuntimeActivationPolicy setting only applies under .NET 4.0 and permits use of mixed 阅读全文

posted @ 2012-11-09 07:30 龙少爷 阅读(904) 评论(1) 推荐(0)

在DataGridView选中指定行
摘要:if (this.dataGridView.Rows.Count > 1) { DataGridViewRow dr = this.dataGridView.Rows[i]; dr.Selected = true; this.dataGridView.CurrentCell = dr.Cells[0]; } 阅读全文

posted @ 2010-09-03 15:52 龙少爷 阅读(438) 评论(0) 推荐(0)

DataGridView中设置指定行为当前行
摘要:比如使用DataGridView显示过程信息,在数据量大时可自动上滚: 阅读全文

posted @ 2010-08-27 09:41 龙少爷 阅读(428) 评论(0) 推荐(0)

导航