摘要: 1. 构造器会显示(" 我是类A的无参构造器"and"我是类B的无参构造器")public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { B b = new B(45); } } class A ... 阅读全文
posted @ 2010-03-08 21:54 平凡人生 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 1. 默认情况下,int为“0”;string为空;public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Test test = new Test(); Messag... 阅读全文
posted @ 2010-03-06 21:42 平凡人生 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. 类内部namespace _15.类的修饰符{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { defaultMethod(); publicMethod(); privateM... 阅读全文
posted @ 2010-03-06 20:35 平凡人生 阅读(219) 评论(0) 推荐(0) 编辑
摘要: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if (char.IsLetter(c)) label1.Text = "字母"; else if (char.IsDigit(c)) label1.Text = "数字"; else if (char.IsPunctua... 阅读全文
posted @ 2010-03-05 21:42 平凡人生 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1. 参数值namespace _06.方法_2_{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { int i = 0; MessageBox.Show("i= " + i); } ... 阅读全文
posted @ 2010-03-05 20:42 平凡人生 阅读(1123) 评论(4) 推荐(1) 编辑
摘要: 1.namespace _05.方法_1_{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { MessageBox.Show("this is a Method"); } }}2.na... 阅读全文
posted @ 2010-03-04 20:59 平凡人生 阅读(224) 评论(0) 推荐(1) 编辑
摘要: 相信不少同学在背单词时会有这样的体会:有时候拼命记下了拼写,却忘了单词的意思,有时候知道单词的意思,却又拼不出来,总是让人又爱又恨。其实,记忆单词是可以有奥秘的,虽然说一个个的字母无序地排列让人捉摸不透,但是只要我们细心观察,就可以发现一些有用的小规律,帮助我们更快的记住单词。规律一:发音是重要的,规律是可循的。其实很多同学在记忆单词的过程中已经发现这个规律了,但是可能没有时间静下心来好好总结,没... 阅读全文
posted @ 2010-02-26 20:31 平凡人生 阅读(320) 评论(0) 推荐(1) 编辑
摘要: =========================================== .net //第1: /*-- 内置跳转 ----*/ Response.Redirect( Request.Url.ToString( ) ); //第2: /*----内置 html ----*/ Response.AddHeader( "Refresh","0" ); //将指定的标头和值添加到此响应的 ... 阅读全文
posted @ 2010-02-26 20:01 平凡人生 阅读(799) 评论(0) 推荐(1) 编辑