WebBrowser控件创建COM异常 [英] WebBrowser Control creates COM Exception

查看:66
本文介绍了WebBrowser控件创建COM异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我目前正在研究与WebBrowser控件有关的应用程序中的问题.
我启用了VS2010中的几乎所有异常,并且每当我创建WebBrowser控件的新实例时,
基础代码引发COM异常.

I am currently looking into a problem in our application related to the WebBrowser control.
I have enabled almost every exception in VS2010 and whenever I create a new instance of the WebBrowser control, the
underlying code throws a COM Exception.
The exception is thrown when

this.WebBrowserObject.AllowWebBrowserDrop = false;

this.WebBrowserObject.ScrollBarsEnabled = false;

this.WebBrowserObject.AllowWebBrowserDrop = false;
and
this.WebBrowserObject.ScrollBarsEnabled = false;

已设置.

异常的消息如下:
错误HRESULT E_FAIL已从对COM组件的调用返回.

我不确定这是否真的会发生.
任何帮助将不胜感激.

are set.

The message of the Exception is the following:
Error HRESULT E_FAIL has been returned from a call to a COM component.

I am not sure if this really is supposed to happen.
Any help would be appreciated.

问候,
安德烈(Andre)

Greetings,
Andre

推荐答案

大家好,

我目前正在研究与WebBrowser控件有关的应用程序中的问题.
我启用了VS2010中的几乎所有异常,并且每当我创建WebBrowser控件的新实例时,
基础代码引发COM异常.

I am currently looking into a problem in our application related to the WebBrowser control.
I have enabled almost every exception in VS2010 and whenever I create a new instance of the WebBrowser control, the
underlying code throws a COM Exception.
The exception is thrown when

this.WebBrowserObject.AllowWebBrowserDrop = false;

this.WebBrowserObject.ScrollBarsEnabled = false;

this.WebBrowserObject.AllowWebBrowserDrop = false;
and
this.WebBrowserObject.ScrollBarsEnabled = false;

已设置.

异常的消息如下:
错误HRESULT E_FAIL已从对COM组件的调用返回.

我不确定这是否真的会发生.
任何帮助将不胜感激.

are set.

The message of the Exception is the following:
Error HRESULT E_FAIL has been returned from a call to a COM component.

I am not sure if this really is supposed to happen.
Any help would be appreciated.

问候,
安德烈(Andre)

Greetings,
Andre

我也有同样的问题!


这篇关于WebBrowser控件创建COM异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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