文件夹选择自定义 [英] Folder selection customization

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

问题描述

大家好,

我想打开一个文件夹选择对话框.进入文件夹时,如果Folder1具有txt文件和其他一些文件夹,则Folder1的子文件夹不应显示在文件夹选择"对话框中.有什么办法可以实现?

I want to open a folder selection dialog box. While going into folders, if Folder1 has a txt file and some other folders, the sub folders of Folder1 should not get displayed in the Folder selection dialog box. Is there any way to achieve it?

预先感谢.

推荐答案

RAAm,

谢谢您在这里发布.

对于您的问题,可以在winform中使用folderBrowerDialog1显示文件夹选择对话框.

For your question, you could use folderBrowerDialog1 in winform to show the folder selection dialog box.

   DialogResult result = folderBrowserDialog1.ShowDialog();

对于您的问题,我对"Folder1具有文本文件和其他一些文件夹,Folder1的子文件夹不应显示在文件夹选择".你的意思是如果Folder1有 一个文本文件,它不会显示包含.txt文件和子文件夹的任何内容吗?

And for your question, I have something confused about "if Folder1 has a text file and some other folders, the sub folders of Folder1 should not get displayed in the Folder selection". Do you mean if the Folder1 has a text file, it wound not show any thing include .txt file and sub Folder in it?

最好的问候

温迪


这篇关于文件夹选择自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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