功能:把选定文件夹下的dll.子文件夹与子文件夹中的dll填写到窗体的treeview控件上.
实现:imagelist中的图片需要自己重新定义. 【程序编程相关:VB编辑ListView的SubItem】
缺点:窗体简单,代码有些混乱,线程之间的调用可能没有到最优化. 【推荐阅读:c#.net常用的小函数和方法集 】
多线程的编写:结构合理.注意同步. 【扩展信息:用VB.NET写的一个简易的RSS阅读器】
多线程的优点:可以及时响应用户的操作,不至于产生“未响应”的尴尬;设计合理(结合需求)的话,可使软件的性能提高.
以上是我对这个例程与多线程的个人体会,如有不妥之处,还请大家批评指正.
imports system.iopublic class form1 inherits system.windows.forms.form
#region " windows 窗体设计器生成的代码 "
public sub new() mybase.new()
该调用是 windows 窗体设计器所必需的. initializecomponent()
在 initializecomponent() 调用之后添加任何初始化
end sub
窗体重写 dispose 以清理组件列表. protected overloads overrides sub dispose(byval disposing as boolean) if disposing then if not (components is nothing) then components.dispose() end if end if mybase.dispose(disposing) end sub
... 下一页