上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 72 下一页
摘要: progressBar的Step属性设置为1 using System; using System.Windows.Forms; using System.Threading; namespace Demo1 { public partial class Form1 : Form { public 阅读全文
posted @ 2019-05-08 20:42 夕西行 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1、移动pictureBox控件即可 素材: using System; using System.Drawing; using System.Windows.Forms; using System.Threading;//引入线程 namespace Demo { public partial c 阅读全文
posted @ 2019-05-08 19:19 夕西行 阅读(249) 评论(0) 推荐(0) 编辑
摘要: IO流操作文件内容,using System.IO;//引入命名空间 阅读全文
posted @ 2019-05-06 23:33 夕西行 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 该类有三个方法: GetDirectories() 当前目录的子目录 GetFiles() 当前目录的文件列表 GetFileSystemInfos() 当前目录的文件、子目录,返回强类型FileSystemInfo数组 阅读全文
posted @ 2019-05-04 18:14 夕西行 阅读(344) 评论(0) 推荐(0) 编辑
摘要: File类、Directory类,都是静态类,可以直接使用类名 FileInfo类、DirectoryInfo类,都是动态类,需要new对象,通过对象来操作 【文件的创建、复制、移动、删除】using System.IO; 【文件基本信息】 Name,文件名 FullName,完整目录(包括文件名) 阅读全文
posted @ 2019-05-04 17:25 夕西行 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 1、VS创建项目(实现数据库的增删改查、并在dataGridView中展示) 增、改通过Button,删通过快捷菜单ContextMenuStrip控件(DateGridView控件的ContextMenuStrip属性中要选择),查通过dataGridView单元格单击事件 2、SQL Serve 阅读全文
posted @ 2019-05-04 15:26 夕西行 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 接口,是一种协议规范,其中的属性、方法等成员只能定义,不能做其他操作。 接口中的成员,默认public,因此,成员无修饰符。 【格式】修饰符 interface 接口名称:接口列表{ 接口内容; } 通过类的继承来实现接口(成员的功能)。 接口成员的显示实现:如果接口列表的成员相同,那么在定义成员功 阅读全文
posted @ 2019-04-29 22:32 夕西行 阅读(156) 评论(0) 推荐(0) 编辑
摘要: C#类的多态,通过在派生类(子类)中重写基类(父类)的虚方法来实现。 注意virtual、override关键字 阅读全文
posted @ 2019-04-29 21:29 夕西行 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1、封装 属性和行为封装起来,就是类。用户无需知道类内构成,会用即可。 2、继承 解决代码复用问题,具有共同的属性或行为的类可以通过继承节省代码。 3、多态 龙生九子,各有不同。子类继承父类,但子类有自己独特的属性或行为。 阅读全文
posted @ 2019-04-29 21:00 夕西行 阅读(953) 评论(0) 推荐(0) 编辑
摘要: C#类的继承,一个冒号即可。子类:父类 阅读全文
posted @ 2019-04-29 20:27 夕西行 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 72 下一页