C# 中的文件夹资源管理器

发布于 2024-08-06 19:22:37 字数 172 浏览 3 评论 0原文

我正在尝试用 C# 创建一个轻松赚钱文件夹资源管理器,因为我是菜鸟,除了使用网络浏览器之外我没有太多想法,它可以工作(如果有人有更好的想法,请让我知道)。

问题:如何让它从“查看 - 中等图标”而不是“查看 - 详细信息”开始?

多谢, 约努特

I'm trying to create an easy money folder explorer in c# and, because I'm a noob, I don't have many ideas except using webbrowser, which works (if anyone has a better idea please let me know it).

THE QUESTION: how do I make it start in "view - medium icons" instead of "view - details" ?

Thanks a lot,
Ionut

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

夏尔 2024-08-13 19:22:37

您可能在这里采取了错误的方法 - 您是否考虑过使用普通的 ListView 控件?您可以更好地控制图标、列等的显示方式。

MSDN 甚至有一个 教程 展示如何使用模仿资源管理器功能的 ListView。

You might be taking the wrong approach here - have you considered using an ordinary ListView control? You'll have much more control over how your icons, columns, etc., are shown.

MSDN even has a tutorial showing how to use a ListView to mimic Explorer functionality.

摘星┃星的人 2024-08-13 19:22:37

你必须使用 P/Invoke 来实现这一点。总之,WebBrowser 使用 Windows 控件 SysListView 来显示文件。可以通过 P/Invoke 访问和自定义该控件。

有关如何执行此操作的示例,请转到此处 --> Web浏览器查看本地文件

you have to use P/Invoke to achieve this. In summary, WebBrowser uses a windows control SysListView to display the files. This control can be accessed and customized via P/Invoke.

For an example of how to do this, go here --> WebBrowser to view local files.

久随 2024-08-13 19:22:37

Web 浏览器浏览文件和文件夹非常不灵活且缓慢。考虑使用专门为文件和文件夹浏览开发的 FileView 等控件。

The WebBrowser is very inflexible and slow for browsing files and folders. Consider using controls such as FileView developed spcifically for file and folder browsing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文