在Visual Studio 2010程序中使用TreeView Control显示Windows目录内容 [英] Display Windows Directory Contents using TreeView Control in a Visual Studio 2010 program

查看:71
本文介绍了在Visual Studio 2010程序中使用TreeView Control显示Windows目录内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够使用TreeView控件在树结构中显示C:驱动器目录内容。 我正在尝试使用Visual Basic来完成此任务。 我希望能够使用"+"。每个
目录旁边的符号,以显示每个目录的内容/文件或隐藏每个目录的内容/文件。 


我只是想知道这是否可以在Visual Studio 2010中使用Visual Basic完成? 


我想弄清楚的第一步是如何让C:盘目录内容显示在Visual Basic窗体上的TreeView控件中? / p>

提前致谢,


Jim

解决方案

你好,


此论坛(Word for Developers)用于与Word对象相关的开发问题
模型和你的问题更相关
Visual Basic表单
所以我会把这个帖子移到 
  Visual
Basic


感谢您的理解。

最好的问候,

特里


I would like to be able to display the C: drive directory contents in a tree structure using the TreeView Control.  I'm trying to use Visual Basic to accomplish this task.  I would like to be able to use the "+" symbol next to each directory in order to display the contents/files of each directory or hide the contents/files of each directory. 

I'm just wondering if this can be accomplished using Visual Basic in Visual Studio 2010? 

The first step that I'm trying to figure out is how do you get the C: drive directory contents to display in a TreeView control on a Visual Basic Form?

Thanks in advance,

Jim

解决方案

Hello,

This forum(Word for Developers) is for development issues related to Word Object Model and your problem is more related to Visual Basic Form, so I would move this thread into  Visual Basic.
Thanks for your understanding.
Best Regards,
Terry


这篇关于在Visual Studio 2010程序中使用TreeView Control显示Windows目录内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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