Sinac
Sinac

Reputation: 11694

How to create simple browser with Mozilla ActiveX Control with VB.NET?

I download and install Mozilla ActiveX Control

and add MozillaBrowser Class to ToolBox

Create a windows form application windows, drag drop MozillaBrowser from ToolBox to Form1

also drag drop a WebBrowser1 to Form1

in Form1_Load write this:

WebBrowser1.ActiveXInstance = AxMozillaBrowser1

but Error Property 'ActiveXInstance' is 'ReadOnly'.

I want display a fix URL in Mozilla browser, Now I must what to do?

Upvotes: 1

Views: 14236

Answers (1)

Matt Wilko
Matt Wilko

Reputation: 27322

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")

have a look at this wrapper which may help you on code project: http://www.codeproject.com/Articles/20312/Browsers-Wrapper-Mozilla-IE

Upvotes: 2

Related Questions