摘要: C#委托实例123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354// 委托使用例子// 节选自《C#入门经典》using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace weituo{ class Program { static void Main(string[] args) { // 声明委托变量 ProcessDeleg 阅读全文
posted @ 2013-05-07 14:16 流星的实验室 阅读(171) 评论(0) 推荐(0) 编辑
摘要: C# 中的委托和事件PDF 浏览:http://www.tracefact.net/Document/Delegates-and-Events-in-CSharp.pdf 文中代码在VS2005下通过,由于VS2003(.Net Framework 1.1)不支持隐式的委托变量,所以如果在一个接受委托类型的位置直接赋予方法名,在VS2003下会报错,解决办法是显式的创建一个委托类型的实例(委托变量)。例如:委托类型 委托实例 = new 委托类型(方法名); 欢迎浏览本文的后续文章: C#中的委托和事件(续)源码下载:http://www.tracefact.net/SourceCode/D. 阅读全文
posted @ 2013-05-07 13:17 流星的实验室 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 一、单元格内容的操作*****// 取得当前单元格内容 Console.WriteLine(DataGridView1.CurrentCell.Value); // 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex); // 取得当前单元格的行 Index Console.WriteLine(DataGridView1.CurrentCell.RowIndex);*******另外,使用 DataGridView.CurrentCellAddress 属性(而不是直接访问单元格)来确定单元格所在的.. 阅读全文
posted @ 2013-05-07 09:01 流星的实验室 阅读(1235) 评论(0) 推荐(0) 编辑