Solved

How to use Mozilla instead of IE as referenced and controlled browser in VB6 (Dim WithEvents o_IE As InternetExplorer)

Posted on 2009-07-06
4
671 Views
Last Modified: 2013-12-08
Hello and good morning !

My VB6 project is currently controlling IE6. (It's a kind of form filler, which works fine.)
Now I have to role it out to PCs with different versions of IE installed and had to find out: That never gone work. Especially as IE8 will come soon.

As many PCs update IE automatically I can't have control which version of IE is installed :-( .

So I was wondering: Why not go for Mozilla ?

But unfortunately I have not information so far how to have it as a controlled browser (as reference).
What do I have to do?

Thank you for your help.

Susan


This is what I need to replace:
Option Explicit
Dim WithEvents o_IE As InternetExplorer
 
Private Sub Form_Load()
...
    Set o_IE(0) = New InternetExplorer
    o_IE(0).Navigate m_URL
    o_IE(0).Visible = True
...
End Sub
 
Private Sub Form_Unload(Cancel As Integer)
    On Error Resume Next
    o_IE.Quit
    On Error GoTo 0
End Sub
 
Private Sub o_IE_StatusTextChange(ByVal l_Text As String)
    Debug.Print "o_IE_StatusTextChange", l_Text
...
End Sub
 
Private Sub o_IE_TitleChange(ByVal Text As String)
...
End Sub
 
Sub SetTitle(l_Text)
    o_IE(0).Document.Title = l_Text
    o_IE(0).StatusText = l_Text
End Sub

Open in new window

0
Comment
Question by:DistributedServices
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 17

Expert Comment

by:CSecurity
ID: 24791661
Firefox doesn't have such ActiveX... You cannot embed Firefox in VB6 application.
0
 
LVL 17

Accepted Solution

by:
CSecurity earned 500 total points
ID: 24791665
Here you can find an unofficial ActiveX for Firefox which you can use it to embed firefox in your vb6 application. There is also samples... Check it out, it's great!

http://www.iol.ie/~locka/mozilla/mozilla.htm
0
 

Author Comment

by:DistributedServices
ID: 24791911
Thank you, CSecurity, I know that web site and have tried Mozilla/FireFox Active X Control.

It's more for an embedded control, no?
I like to have an external browser instance (with all browser's native buttons, history, etc).

project > reference (not project > component) I need to configure for that.

Do you have any an idea how to control an external Mozilla Browser ?

0
 
LVL 17

Expert Comment

by:CSecurity
ID: 24792370
Firefox doesn't have such feature, just you can use one of the following methods:

1) DLL Injection
2) Develop a Firefox Plugin and connect firefox to your application using your plugin
3) Do something and read something from Firefox process using SendMessage etc.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question