在webbrowser的上下文菜单中启用新选项卡 [英] enable new tab in context menu in webbrowser

查看:72
本文介绍了在webbrowser的上下文菜单中启用新选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我如何在上下文菜单webbrowser控件中的新选项卡中启用打开。

i通过多选项卡创建一个webbrowser程序,只是问题是启用打开新标签请帮帮我。

hello all,
how i can enable open in new tab in context menu webbrowser control .
i make a webbrowser program by multi tab and just problem is enable open in new tab please help me.

推荐答案

检查此答案启用在新标签页中打开 WebBrowser的上下文菜单中的项目? [ ^ ] ,说...

Check this answer Enabling "Open In New Tab" item in WebBrowser''s context menu?[^], which says...
引用:

WebBrowser 控件不支持多标签导航。你必须创建自己的标签(例如,使用 TabControl 控件)将包含WebBrowser的实例。如何实施 此处有很好的解释 那里 那里

The WebBrowser control does not support multi-tab navigation. You''ll have to create your own tabs (for example, using the TabControl control) which would contain instances of WebBrowser. There are great explanations on how it could be implemented here, there and there.

然后,您需要通过添加在新标签页中打开操作来自定义WebBrowser的上下文菜单。该操作将触发您自己实现的多标签导航。要自定义上下文菜单,请查看以下文章: 如何在C#中自定义WebBrowser上下文菜单 WebBrowser Customization

Then, you''ll need to customize the context menu of your WebBrowser by adding the "Open In New Tab" action. That action will trigger your own implementation of multi-tab navigation. To customize the context menu, check this article: How to customize the WebBrowser context menu in C# WebBrowser Customization.


这篇关于在webbrowser的上下文菜单中启用新选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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