473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Add Mozilla engine to Windows forms application

Hi all,

Is there anybody out there who knows how to embed Mozilla engin in
CSharp application.
There are some useful articles in codeproject.com that show how to work
around this issue with IE ; but need embed mozilla in my windows form.
thanks in advance
Behzad

Jun 24 '06 #1
8 13132
On 24 Jun 2006 07:35:24 -0700, Behzad wrote:
Hi all,

Is there anybody out there who knows how to embed Mozilla engin in
CSharp application.
There are some useful articles in codeproject.com that show how to work
around this issue with IE ; but need embed mozilla in my windows form.


There is the Mozilla ActiveX project:
<http://www.iol.ie/~locka/mozilla/mozilla.htm>

Their ActiveX control even has the same API as the IE ActiveX. Not tested
though.
Jun 24 '06 #2
hi,

Thanks.
Best regards
Behzad

Jun 25 '06 #3
Mehdi wrote:
There is the Mozilla ActiveX project:
<http://www.iol.ie/~locka/mozilla/mozilla.htm>


Has anyone here actually tried using this? I've tried it myself, but the
installation instructions on the above page are very unclear - what
exactly do you have to install in order to be able to use it? Do you
actually need to install the whole Mozilla program as well as the
ActiveX control? I managed to get it working on my own machine, but when
installing my program and the ActiveX control on a client machine it
wouldn't run :s

--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
Jun 25 '06 #4
Dylan Parry wrote:
Mehdi wrote:
There is the Mozilla ActiveX project:
<http://www.iol.ie/~locka/mozilla/mozilla.htm>


Has anyone here actually tried using this? I've tried it myself, but the
installation instructions on the above page are very unclear - what
exactly do you have to install in order to be able to use it? Do you
actually need to install the whole Mozilla program as well as the
ActiveX control? I managed to get it working on my own machine, but when
installing my program and the ActiveX control on a client machine it
wouldn't run :s


Yes you need to install either Mozilla Seamonkey or Mozilla Firefox in
order to use it. I guess you might be able to find out exactly which
dll's are needed and ship those with your application, but as it stands
it requires the complete install.

Keep in mind that you need to have IE installed to use the WebBrowser
control aswell.

Jesse
Jun 25 '06 #5
Jesse Houwing wrote:
Yes you need to install either Mozilla Seamonkey or Mozilla Firefox in
order to use it.
Ah, thanks. That's a bit of a pain :(
I guess you might be able to find out exactly which dll's are needed
and ship those with your application, but as it stands it requires
the complete install.
It would be more helpful, imho, if the Mozilla ActiveX component was
shipped with the relevant Gecko DLL files. As it is however, I will see
if I can figure out what files I need and try to come up with something
myself.

The strange thing is that *both* Mozilla and Firefox were installed on
the system that my application wouldn't run on :s
Keep in mind that you need to have IE installed to use the WebBrowser
control aswell.


Helpfully (or not, depending on perspective!), IE comes as default on
Windows systems :)

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!
Jun 26 '06 #6
Hello Dylan,

As Dylan points out.. IE is already installed and encapsulated in the new
WebBrowser control. Why not just use that.

-Boo
Jesse Houwing wrote:
Yes you need to install either Mozilla Seamonkey or Mozilla Firefox
in order to use it.

Ah, thanks. That's a bit of a pain :(
I guess you might be able to find out exactly which dll's are needed
and ship those with your application, but as it stands it requires
the complete install.

It would be more helpful, imho, if the Mozilla ActiveX component was
shipped with the relevant Gecko DLL files. As it is however, I will
see if I can figure out what files I need and try to come up with
something myself.

The strange thing is that *both* Mozilla and Firefox were installed on
the system that my application wouldn't run on :s
Keep in mind that you need to have IE installed to use the WebBrowser
control aswell.

Helpfully (or not, depending on perspective!), IE comes as default on
Windows systems :)

Jun 26 '06 #7
GhostInAK wrote:
As Dylan points out.. IE is already installed and encapsulated in the new
WebBrowser control. Why not just use that.


Because IE lacks the CSS support that I need ;) Either way, I have
managed to get it working fine now. I installed *only* the ActiveX
control, which does actually come with the required DLL files to work
out of the box without Mozilla or Firefox being installed, and then
discovered that the applications using it will only run from a local
drive, whereas I was trying to run them from a network drive.

:)

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!
Jun 27 '06 #8
samie
1
Hi,

I have same problem.
I have a windows application developed in C#.Net. What application does is, when you select a drop down in a form it opens up a website in Internet Explorer and it automatically logs you in.

Instead of opening IE and I wanted to do the same thing in firefox.

Here what I did for IE: (worked fine)

SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();

IWebBrowserApp wb = (IWebBrowserApp)ie;

wb.Visible = true;

wb.Navigate(site, ref o, ref o, ref o, ref o);


For firefox, I did: (not working)


AxMOZILLACONTROLLib.AxMozillaBrowser ie = new AxMOZILLACONTROLLib.AxMozillaBrowser();

MOZILLACONTROLLib.IWebBrowserApp wb = (MOZILLACONTROLLib.IWebBrowserApp)ie;

wb.Visible = true;

wb.Navigate(site, ref o, ref o, ref o, ref o);



I am getting this error when I try to run it:

Unable to cast object of type 'AxMOZILLACONTROLLib.AxMozillaBrowser' to type 'MOZILLACONTROLLib.IWebBrowserApp'.

At line: MOZILLACONTROLLib.IWebBrowserApp wb = (MOZILLACONTROLLib.IWebBrowserApp)ie;



Can you help me with this. I will really appreciate that.

Thanks.

Sudhir
Jul 13 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
4
by: Max of Mad | last post by:
Hi all, I wrote this a while back, but I was unable to get it to work for mozilla. Looked all over the place, but could not find anything on why. Basically, this has a dropdown of some search...
4
by: Don Adams | last post by:
Does the Mozilla browser even support CSS? Very few of my stylesheet formats work in Mozilla. Is there a local stylesheet that is overriding my stylesheet? If so, is there an option to turn off...
16
by: fernandez.dan | last post by:
Hey I'm sorry if this is not the appropriate news group for this question. I was wondering if anyone has any recommendation for embbedding a script engine in a c++ application. I want to feed my...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
5
by: Jonel Rienton | last post by:
Hi, i've created a simple web application and throw in some labels, textboxes and requiredfield validators in there. during my testing using different browsers, i've noticed that when i was...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
2
by: Gary Hasler | last post by:
I am having various problems with web pages on our site not displaying the result of form submissions properly for users with Mozilla type browsers (eg Firefox, Netscape). After investigation I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.