在树状视图中使用其图标显示文件夹和文件(仅.doc/docx) [英] Display folder and file (only .doc/docx) in a tree view with thier icon

查看:52
本文介绍了在树状视图中使用其图标显示文件夹和文件(仅.doc/docx)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用c#创建一个窗口窗体,其中有一个TreeView控件.我必须执行以下任务:
a)单击浏览按钮
b)选择基本文件夹
c)显示带有基本图标的所有文件(.doc/.docx)和基本文件夹的文件夹
d)如果有人单击子文件夹,则它应该展开并显示其文件和文件夹.

请给我一些建议/链接.

Hi,

I am creating a window form using c# where i have a TreeView control . I have to do following task:
a)Click on a browse button
b)Select the base folder
c)Display all the files(.doc/.docx) and folder of the base folder with their icon
d)If some one clicks the sub-folder it should expand and display their file and folders.

Kindly give me some suggestions/links.

推荐答案

这必须帮助您 http://www.csharp-examples.net/get-目录中的文件


这篇关于在树状视图中使用其图标显示文件夹和文件(仅.doc/docx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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