上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Drawing; 6 using System.Windows.Forms; 7 阅读全文
posted @ 2022-11-06 18:57 chenlight 阅读(165) 评论(0) 推荐(0)
摘要: 我觉得讨论新的语言特性在哪里有亮点,旧的语言特性在哪里有亮点是很重要的-我们称之为已建立的-它们仍然是首选。在文章的末尾你将学习到属性是什么,还有更多关于自动属性、赋值属性、只读属性、属性表达式和Get、Set表达式的细节特性。 前言 近些年,C#已经从一种只有一个功能来解决问题的语言发展成为一种对 阅读全文
posted @ 2022-10-30 18:42 chenlight 阅读(82) 评论(1) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Drawing; 6 using System.Windows.Forms; 7 阅读全文
posted @ 2022-10-29 13:44 chenlight 阅读(200) 评论(0) 推荐(0)
摘要: 如上面标题所示,使用base关键词,我们可以自派生类中调用基类的构造函数。 下面是在创建派生类的实例时指定应调用哪个基类构造函数的示例。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using 阅读全文
posted @ 2022-10-29 13:38 chenlight 阅读(342) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Drawing; 6 using System.Windows.Forms; 7 阅读全文
posted @ 2022-10-18 22:36 chenlight 阅读(105) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Drawing; 6 using System.Windows.Forms; 7 阅读全文
posted @ 2022-10-16 17:44 chenlight 阅读(74) 评论(0) 推荐(0)
摘要: 先放入正常的代码,如下: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Drawing; 6 using System.Wind 阅读全文
posted @ 2022-10-16 09:58 chenlight 阅读(47) 评论(0) 推荐(0)
摘要: ClientSize = new Size(102,126);此客户区域的尺寸与上面的 new CalcButton(this,"+",'+',62,24,14,14)等各构造函数的定位尺寸是一套体系; 而Scale(Font.Height/9f);是一个缩小或放大的系数,也就是上面的整套体系进行缩 阅读全文
posted @ 2022-10-15 17:34 chenlight 阅读(317) 评论(0) 推荐(0)
摘要: Parent在内部构造中的显示如下: 是base.Parent = parent; 而base的基类指的是Button; 由此可以看出,Parent = parent;类似 于前面的程序中展示的btn.Parent = this; 阅读全文
posted @ 2022-10-15 14:01 chenlight 阅读(121) 评论(0) 推荐(0)
摘要: onkeypress函数是在键盘上输入或操作时,引入InvokeOnClick,就可以触发下面的ButtonOnClick方法; 点击InvokeOnClick就可以看到它的内部构造如下: 从上面可以看出,实际上,触发的是OnClick事件。 Where is InvokeOnClick() met 阅读全文
posted @ 2022-10-15 13:50 chenlight 阅读(167) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页