如何使用带有VB.NET的Mozilla ActiveX控件创建简单的浏览器? [英] How to create simple browser with Mozilla ActiveX Control with VB.NET?
问题描述
我下载并安装 Mozilla ActiveX控件
并将MozillaBrowser Class
添加到工具箱
创建Windows窗体应用程序窗口,将MozillaBrowser
从工具箱拖放到Form1
Create a windows form application windows, drag drop MozillaBrowser
from ToolBox to Form1
还将WebBrowser1
拖放到Form1
在Form1_Load
中写成这样:
WebBrowser1.ActiveXInstance = AxMozillaBrowser1
但错误属性'ActiveXInstance'为'ReadOnly'.
but Error Property 'ActiveXInstance' is 'ReadOnly'.
我想在Mozilla浏览器中显示一个修复URL,现在我该怎么办?
I want display a fix URL in Mozilla browser, Now I must what to do?
推荐答案
据我了解,此控件是WebBrowser控件的直接替换,因此您只需在自己的控件上添加该控件的实例表格,然后类似这样的方法应该起作用:
As I understand it this control is a direct replacement for the WebBrowser control so you should just add an instance of the control on your form and then something like this should work:
AxMozillaBrowser1.Navigate2("http://www.bbc.co.uk")
看看这个包装程序,它可以帮助您进行代码项目: http://www.codeproject.com/Articles/20312/Browsers-Wrapper-Mozilla-IE
have a look at this wrapper which may help you on code project: http://www.codeproject.com/Articles/20312/Browsers-Wrapper-Mozilla-IE
这篇关于如何使用带有VB.NET的Mozilla ActiveX控件创建简单的浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!