[英]How can I filter a FolderBrowserDialog, or what's an alternative?
I need to restrict folders in a FolderBrowserDialog that appear by default. 我需要限制默认显示的FolderBrowserDialog中的文件夹。 For instance, "Homegroup", "Recycle Bin", "Control Panel" etc. Is there any way to work with the existing FolderBrowserDialog, or do I need to look at an alternative control?
例如,“家庭组”,“回收站”,“控制面板”等。是否可以使用现有的FolderBrowserDialog进行操作,还是需要查看其他控件?
您无法从应用程序中执行此操作,但必须创建自己的用户控件。
Not a complete answer to your question, but if you set the FolderBrowserDialog.RootFolder
不是您问题的完整答案,但是如果您设置
FolderBrowserDialog.RootFolder
you get 你得到
Only the specified folder and any subfolders that are beneath it will appear in the dialog box and be selectable.
(From MSDN) (来自MSDN)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.