摘要: 一、ImageList ImageList组件,又称为图片存储组件,它主要用于存储图片资源,然后在控件上显示出来,这样就简化了对图片的管理。ImageList组件的主要属性是Images,它包含关联控件将要使用的图片。每个单独的图片可以通过其索引值或键值来访问;另外,ImageList组件中的所有图 阅读全文
posted @ 2019-01-07 12:04 net-sky 阅读(11724) 评论(0) 推荐(0) 编辑
摘要: 许多Windows 窗体控件(例如,ListView 和 TreeView 控件)实现了 BeginUpdate 和EndUpdate 方法,至于为何要这样用简单说明一下。 当我们向一个Listview控件中添加一组Item的时候,第一种方式就是把Item全部放到一个集合里,一次性加到listvie 阅读全文
posted @ 2019-01-07 11:32 net-sky 阅读(893) 评论(0) 推荐(0) 编辑
摘要: // 获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory// 获取模块的完整路径,包含文件名System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName// 获取和设置当前 阅读全文
posted @ 2019-01-07 11:20 net-sky 阅读(347) 评论(0) 推荐(0) 编辑