禁止使用C#或VB中的WebBrowser控制消息 [英] Suppress WebBrowser control messages in C# or VB

查看:71
本文介绍了禁止使用C#或VB中的WebBrowser控制消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何隐藏对话框,如:


我使用C#WebBrowser控件.
请不要建议像这样的网址:
禁止托管WebBrowser控制对话框

我尝试过这个.此对话框不起作用.

Hi,
How to suppress dialogs like:


I use C# WebBrowser control.
please do not suggest urls like:
Suppressing Hosted WebBrowser Control Dialogs

I tried it. It does not work for this dialog.

Michel Godfroid写道:
Michel Godfroid wrote:

我认为您不能这样做(这是一个安全问题).尝试拦截后退"按钮/功能,然后将其重定向以刷新.

I don''t think you can (it''s a security issue). Try intercepting the Back button/function, and redirect it to refresh.


这不是因为后退按钮.这是因为计时器(<span>标记)已完成且已到期.


It is not because of back button. It is because of timers(<span> tags) that are finished and expired.

推荐答案

我认为您不能这样做(这是一个安全问题) .尝试拦截后退"按钮/功能,然后将其重定向以刷新.
I don''t think you can (it''s a security issue). Try intercepting the Back button/function, and redirect it to refresh.


这篇关于禁止使用C#或VB中的WebBrowser控制消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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