WebBrowser Control:是否有关于浏览本地文件和文件夹的良好文档?

发布于 2024-07-17 04:20:35 字数 207 浏览 3 评论 0原文

我使用 WebBrowser 控件来浏览本地文件和文件夹,但该控件似乎主要是为了浏览 Web(正如其名称所暗示的那样)而设计的。

我需要能够执行常见任务,例如使用“上一级”按钮,或将控件置于“文件搜索”模式,获取活动项目等。

有没有办法使用此控件执行这些操作? 是否有全面的文档来解释使用 WebBrowser 进行本地浏览?

谢谢大家。

I am using the WebBrowser control to browse local files and folders, but the control seems to be designed primarily to browse the Web (as its name implies).

I need to be able to do common tasks, like using the "Up one level" button, or put the control in "File Search" mode, get the active item, etc.

Is there a way to do these things using this control?
Is there a comprehensive documentation somewhere to explain local browsing using the WebBrowser?

Thanks all.

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

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

发布评论

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

评论(2

迷荒 2024-07-24 04:20:35

这是一个很好的介绍,应该可以帮助您开始这样做。 该对话框的大部分工作将由浏览器完成,您只需提示它如何打开该对话框即可。

Here is a good intro that should help you get started on this. Most of the work with this dialog will be done by the browser, you need only to prompt it how to open the dialog.

忆梦 2024-07-24 04:20:35

我认为您可能将 WebBrowser 控件与 Windows 资源管理器混淆了。

如果要浏览本地文件系统,则需要将“打开文件”对话框添加到包含 Web 浏览器控件的窗体中,然后使用某种按钮打开该对话框以找到要加载到 Web 浏览器控件中的文件。

I think you may be confusing the WebBrowser control with Windows Explorer.

If you want to browse around your local file system, then you need to add an Open File Dialog to the form containing the Web Browser control, then have a button of some kind open that dialog to locate the file to load into the WebBrowser control.

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