第7章-资源管理器应用程序设计.pptVIP

  • 5
  • 0
  • 约9.71千字
  • 约 59页
  • 2019-07-05 发布于山东
  • 举报
3.编写自定义过程findFiles的程序代码 自定义过程findFiles主要实现搜索文件夹或文件,且在状态栏中显示搜索路径,在ProgressBar1控件中显示搜索进程,在listViewList控件中显示搜索结果。 4.编写自定义方法addListViewItem的程序代码 自定义方法addListViewItem的功能是将搜索到的文件夹或文件在listViewList控件中显示,且控制不同的对象,使其显示不同的图标。其程序代码如表7-21所示。 表7-21 自定义过程addListViewItem的程序代码 序 号 程 序 代 码 01 Private Sub addListViewItem(ByVal file() As String, ByVal dir As Boolean) 02 Dim lvItem As ListViewItem 03 lvItem = New ListViewItem(file) 04 If dir = True Then 05 lvItem.ImageIndex = 5 06 Else 07 If file(2).Substring(file(2).IndexOf(.) + 1).ToUpper = TXT Then 08

文档评论(0)

1亿VIP精品文档

相关文档