如何使用Treeview扫描根目录文件夹和子文件夹? [英] How Can I Scan A Root Dir Folders and SubFolders With Treeview?

查看:75
本文介绍了如何使用Treeview扫描根目录文件夹和子文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,代码项目和代码项目成员我又遇到了另一个问题,这是由于我在大型文件系统方面遇到的问题以及提取它们所花费的时间.简而言之,我当前正在使用一个对话框,弹出该对话框,允许用户选择搜索根目录(例如C:\),然后在文本框中显示选择内容,而我的列表框显示该根目录中的所有文件夹和子文件夹将被扫描.问题在于我的文件系统的大小(291,000个文件),需要10分钟或更长时间才能将其提取到列表框中,这在我看来是异常的.解决方案可能是使用树状视图,就像我在其他扫描类型程序中看到的那样,但是当用户在树状视图中选择根目录时,无法想到如何使用它来扫描文件夹和子文件夹.

Hello code project and code project members Im back with another question, due to my problems with large file systems and the time its taking me to fetch them. In short I am currently using a dialog box that pops up to allow the user to select a search root (ex. C:\) after that the selection is shown in the text box and my listbox shows all folders and subfolders in the root that is going to be scanned. The problem lays with the size of my filesystem (291,000 + files) It takes 10 or more mins to fetch into the listbox which is unexceptable in my opinion. The solution might be to use a treeview as i have seen in other scanning type programs but am unable to think of how to use it to scan folders and subfolders when the user selects a root dir in the treeview. Can someone please provide a solution or give an example of how to scan with treeview?

推荐答案

^ ]文章应为您提供解决方案.
This[^] article should give you the solution.


这篇关于如何使用Treeview扫描根目录文件夹和子文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆