GeckoFX

Skybound

Skybound Software is looking to hire experienced C# developers to work on Stylizer and other forthcoming Skybound products. Click here for details.

GeckoFX is an open-source component which makes it easy to embed Mozilla Gecko (Firefox) into any .NET Windows Forms application. Written in clean, fully commented C#, GeckoFX is the perfect replacement for the default Internet Explorer-based WebBrowser control. Download GeckoFX @ Google Code >

GeckoFX is made by Skybound Software, authors of Stylizer—the professional CSS editor with a strong focus on visual control, error-free workflow, and productivity. Learn About Stylizer >

GeckoFX Forum

Discuss GeckoFX, the Open-Source Gecko Control for .NET

You are not logged in.

geckofx from a console application

#1 January 20, 2010 2:49 PM

Cmachine
Member
Registered: November 17, 2009
Posts: 22

geckofx from a console application

Hi everyone,

Do anybody can confirm if I can use the GeckoWebBrowser (System.Windows.Forms.Control) within a console application...

If you ask... WHY? That's because I currently got my geckofx implementation to retrieve custom statistics, so I do not care if URL provided is displayed or not, I just need the data I excepted once the page load is completed....

Any opinion?

Thanks in advance

Offline

 

#2 January 21, 2010 12:07 AM

Cristian
Member
Registered: January 16, 2010
Posts: 17

Re: geckofx from a console application

It is possible

http://geckofx.org/viewtopic.php?id=453

but not particularly easy
Mainly what you can do is to create a hidden form and run it on its own thread that will be blocked in its message loop.

Take into account that you can't call the object to navigate from a different thread, you have to use the invoke function of the form to asynchronous call it and receive the answer in a delegate.

Offline

 

#3 February 05, 2010 2:47 AM

yumex
Member
Registered: January 31, 2010
Posts: 1

Re: geckofx from a console application

This is quite complicated.
Is there any "easier way" how to build console app with geckofx?

Thanks

Offline

 

Board footer