2008年7月18日
摘要: 我们根据属性的不同表现形式,把其区分为简单属性和复杂属性 下面来看下属性的表现形式 简单属性表现形式如下,大家都很熟悉 属性中含有子属性,称之为复杂对象,如Font属性 复杂属性的表现形式如下, (1)连字符的表现形式 (2)内镶属性的表现形式,如定义样式 (3)内镶集合属性的表现形式,如DropDownL... 阅读全文
posted @ 2008-07-18 18:31 ︷起↘嚸. 阅读(157) 评论(0) 推荐(0)
摘要: //MD5加密 public static string GetMD5Code(string text) { byte[] inBytes = System.Text.Encoding.Default.GetBytes(text); System.Security.Cryptography.MD5CryptoServiceProvider md = new System.Secur... 阅读全文
posted @ 2008-07-18 14:50 ︷起↘嚸. 阅读(181) 评论(0) 推荐(0)
摘要: 类型可供选择的按钮自定义控件 using System; using System.Collections.Generic; using System.Text; using System.Web.UI; using System.ComponentModel; namespace ComponentControl { public class Ctrl5:Control,IPostBa... 阅读全文
posted @ 2008-07-18 10:32 ︷起↘嚸. 阅读(139) 评论(0) 推荐(0)
摘要: 设置个窗体只能弹出一次 设置个窗体只能弹出一次#region 设置个窗体只能弹出一次 /**//**//**//// /// 控制只弹出一个子窗体 /// /// 子窗体类型 public void FilmShow(Type type) { Form[] f = this.MdiChildren; foreach (Form form in f) { ... 阅读全文
posted @ 2008-07-18 10:19 ︷起↘嚸. 阅读(638) 评论(0) 推荐(0)
2008年7月17日
摘要: Everyday English 阅读全文
posted @ 2008-07-17 21:07 ︷起↘嚸. 阅读(122) 评论(0) 推荐(0)
摘要: 一个有Onclick事件的button例子: using System; using System.Collections.Generic; using System.Text; using System.Web.UI; using System.ComponentModel; namespace ComponentControl { [DefaultProperty("Text")]... 阅读全文
posted @ 2008-07-17 17:22 ︷起↘嚸. 阅读(158) 评论(0) 推荐(0)
摘要: 简单的没事件的控件 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Collections.Generic; using System.Text; using System.Web.UI;... 阅读全文
posted @ 2008-07-17 17:14 ︷起↘嚸. 阅读(165) 评论(0) 推荐(0)
摘要: 看过很多资料,做过很多测试,ie上实现读取xml很容易,firefox就麻烦了,这是个什么原因? var xmlDoc; //code for IE if (window.ActiveXObject) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); } // code for Mozilla, Firefox, Opera, etc.... 阅读全文
posted @ 2008-07-17 16:46 ︷起↘嚸. 阅读(1081) 评论(0) 推荐(0)
2008年7月15日
摘要: 委托和事件 1、委托 委托是一个可以对方法进行引用的类。与其他的类不同,委托类具有一个签名,并且它只能对与其签名匹配的方法进行引用。 委托的类型是安全的,给定委托的实例可以表示任何类型的任何对象上的实例方法或静态方法--只要方法的签名匹配于委托的签名即可。 2、匿名方法 用作委托参数的一个代码块。 匿名方法中不能使用跳转语句跳到匿名方法外部,也不能从外部跳到匿名方法内部。 匿名方法内部不能访问不... 阅读全文
posted @ 2008-07-15 16:37 ︷起↘嚸. 阅读(680) 评论(3) 推荐(0)
摘要: //打开: private void openFileDialogBTN_Click(object sender, System.EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.InitialDirectory = "c:\\";//注意这里写路径时要用c:\\而... 阅读全文
posted @ 2008-07-15 11:21 ︷起↘嚸. 阅读(1001) 评论(0) 推荐(0)