使用FolderBrowserDialog显示快捷方式

编程入门 行业动态 更新时间:2024-10-27 22:23:45
本文介绍了使用FolderBrowserDialog显示快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有办法使用FolderBrowserDialog显示快捷方式。 我用Google搜索,但最接近的解决方案是使用SaveFile Dialog - 这对我不起作用。 我知道快捷方式不是文件或文件夹,但我仍想在FileBrowse对话框中显示它们。

Is there a way to show shortcuts using FolderBrowserDialog. I have googled, but the closest solution is to use SaveFile Dialog - which wont work for me. I know that shortcuts are not files or folders, but still I want to show them in FileBrowse dialog.

推荐答案

你好Lakamraju Raghuram, 我只是使用普通的OpenFileDialog而不是FolderBrowserDialog和一个过滤器的快捷方式 Hi Lakamraju Raghuram, I'd just use the normal OpenFileDialog instead of the FolderBrowserDialog with a Filter for Shortcuts OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Shortcut|.ink";

但我不明白你的要求 - 你怎么知道快捷方式指向一个文件夹?无论如何,上面的解决方案应该不费吹灰之力 - 当然你总是可以编程你的SpecialDialog - 但我猜你的要求只是垃圾...也许你想再考虑一下? 亲切的问候约翰内斯

But I don't understand your requirement - how would you know that the shortcut Points to a folder? Anyway above solution should work with no effort - of course you can always program your "SpecialDialog" - but I'd guess your requirement is just "rubbish"... maybe you want to think about it again? Kind regards johannes

更多推荐

使用FolderBrowserDialog显示快捷方式

本文发布于:2023-11-06 04:38:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562728.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:快捷方式   FolderBrowserDialog

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!