摘要: Open Source Aspect-Oriented Frameworks in C# AspectSharp - Aspect# (pronunced as AspectSharp) is a free AOP ( Aspect Oriented Programming ) framework for the .NET Framework, it uses Dynamic Proxi... 阅读全文
posted @ 2007-03-22 18:12 冷火 阅读(715) 评论(1) 推荐(0)
摘要: 1、自定义列Customize Cells and Columns in the Windows Forms DataGridView Control by Extending TheirBehavior and AppearanceHost Controls in Windows Forms DataGridView Cells继承 DataGridViewTextBoxCell 类生成新的Ce... 阅读全文
posted @ 2007-03-22 16:15 冷火 阅读(535) 评论(0) 推荐(0)
摘要: 控制只生成一个子窗体 呵呵,很简单,先定义一个窗体变量; 如:frmDirTool() DirTool = null; 然后再从生成这个窗体的点击事件中写入 if(DirTool ==null) { DirTool = new frmDirTool(); DirTool.MdiParent = this; DirTool.Show()... 阅读全文
posted @ 2007-03-22 13:41 冷火 阅读(308) 评论(1) 推荐(0)
摘要: DataGridView删除、修改方法封装 private int curRow = 0;//鼠标右键得到的当前行号 #region 激发鼠标事件,显示右键菜单,得到被选中的行的行号,注意第一列被隐藏的情况考虑 private int showRightMenu(DataGridView dataGridView, ContextMenu... 阅读全文
posted @ 2007-03-22 12:10 冷火 阅读(2639) 评论(0) 推荐(0)
摘要: //新建表 DataTable dt=new DataTable(); //定义表结构 dt.Columns.Add("Id",typeof(System.Int32)); dt.Columns.Add("Code",typeof(System.String)); dt.Columns.Add("Name",typeof(System.String)); //添加新行 ... 阅读全文
posted @ 2007-03-22 11:11 冷火 阅读(15950) 评论(1) 推荐(1)