首页> 外文期刊>Access VB - SQL Advisor >Display File System Information in a TreeView Control
【24h】

Display File System Information in a TreeView Control

机译:在TreeView控件中显示文件系统信息

获取原文
获取原文并翻译 | 示例

摘要

I often need to display information about files and folders, and it seemed to me like the TreeView control provides the best alternative for this sort of display. I know Visual Basic provides controls that make it easy to display file system information, but they're quite old and look outdated at this point. There are also common dialogs that make it easy to select files, but what if you want information about the file system embedded on some other form? Or what if you just want to let users select a folder within the local file system? I reached my breaking point on this, and finally worked out a reasonable solution that works for me. The code in this article displays information about all the drives, folders, and files on a user's computer. Because sometimes I don't want to display files, I also included a constant you can set to False to disable displaying files.
机译:我经常需要显示有关文件和文件夹的信息,在我看来,TreeView控件为这种显示提供了最佳选择。我知道Visual Basic提供了可以轻松显示文件系统信息的控件,但是它们很旧,并且在这一点上看起来已经过时了。还有一些常见的对话框可让您轻松选择文件,但是如果您想要有关以某种其他形式嵌入的文件系统的信息,该怎么办?或者,如果您只想让用户在本地文件系统中选择一个文件夹,该怎么办?我达到了这个突破点,终于找到了适合我的合理解决方案。本文中的代码显示有关用户计算机上所有驱动器,文件夹和文件的信息。因为有时我不想显示文件,所以我还包含了一个常量,您可以将其设置为False以禁用显示文件。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号