AxWebbrowser控制问题 [英] AxWebbrowser control problem

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

问题描述

我正在尝试在VB.Net应用程序中使用AxWebbrowser控件。

控件放在表单的其中一个标签页上。这是我的错误

当我将
设置为打破调试器的''exception'时:

第一次机会类型异常

''System.Runtime.InteropServices.COMException''发生在

system.windows.forms.dll


附加信息:未知错误


如果我将''例外''设置为继续,那么在运行期间表格中无法显示控件

时间。


非常感谢任何帮助。

谢谢。

I am trying to use the AxWebbrowser control in my VB.Net application. The
control is placed on one of the tab pages in the form. This is the error I am
getting when I
have the ''exceptions'' set to break into the debugger:
A first chance exception of type
''System.Runtime.InteropServices.COMException'' occurred in
system.windows.forms.dll

Additional information: Unknown error

If I set the ''exceptions'' to Continue, then the control is not visible in
the form during run-time.

Any help is greatly appreciated.
Thanks.

推荐答案

Udhay,


axwebbrowser集成在资源中。


我从未成功将其设置为可查看的webbrowser(不是作为互联网的链接)

资源管理器)没有从工具箱中拖动它。


你做了什么?


Cor


Cor,

我想我在上一篇文章中没有清楚地解释这个问题t。


我在VB .Net 2003中创建了一个用户控件(myUControl.dll),在那个

我有一个带有四个标签页的TabControl。在第三个标签页中,我放置了一个

AxWebBrowser控件(从我最初添加COM Microsoft Web

浏览器shdocvw.dll的工具箱中)和几个按钮导航。

问题是当我尝试在我的主应用程序中使用myUControl.dll

(myUApp.exe)时,它始终在此行中断:

CType(Me.AxWebBrowser1,

System.ComponentModel.ISupportInitialize).EndInit()


请帮忙。

谢谢。
Cor,
I guess I did not clearly explain the problem in my last post.

I am creating an user control (myUControl.dll) in VB .Net 2003 and in that
I have a TabControl with four tab pages. In the third tab page, I placed an
AxWebBrowser control (from the tool box where I added the COM Microsoft Web
Browser shdocvw.dll, initially) and couple of buttons to navigate. The
problem is when I try to use the myUControl.dll in my main application
(myUApp.exe), it always break at this line:
CType(Me.AxWebBrowser1,
System.ComponentModel.ISupportInitialize).EndInit( )

Please help.
Thanks.


Udhay,


这就是我没有拖动时遇到的问题,你拖了吗? br />
在你的标签页上?


Cor
Udhay,

That is exactly the problem that I have when I did not drag it, did you drag
it on your tabpage?

Cor


这篇关于AxWebbrowser控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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