Winform中的ExplorerBrowser控件 [英] ExplorerBrowser control in a Winform

查看:327
本文介绍了Winform中的ExplorerBrowser控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Winform中有一个ExplorerBrowser,它按预期显示文件夹中的所有文件夹和所有文件,我想做的只是显示文件类型pdfs和我一起浏览文件夹时的powerpoint文件。



我是vb.net编程的初学者,这对我来说是不同的,可能是我要去做这个完全错误的方式,并感谢任何帮助



David

Hello all,
I have an ExplorerBrowser in a Winform, It works as expected showing all folders and all files within the folders, What I would like to do though is to show only file types pdfs and powerpoint files as I browse the folders.

I am a beginner in vb.net programming and it's proving differcult for me, it may be I'm going about this totally the wrong way and would appreciate any help

David

推荐答案

我想你已经使用过DriveListBox, DirListBox和FileListBox ...

只需在FileList定义中添加此代码:



FileListBox1.Pattern =* .pdf ; * .ppt
I suppose you have used DriveListBox, DirListBox and FileListBox...
just add in the FileList definition this code:

FileListBox1.Pattern = "*.pdf; *.ppt"


这篇关于Winform中的ExplorerBrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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