I'm new to geckofx, and wonder if i can use it in non ui app like windows console or just a web service. It will be run background to get html content?
I've been using web-browser but cannot stop it from popping up new windows.
Also, any idea to do the same with webkit2, it has no documentation and sample code at all but it seems to be what i need most since it's isolated from UI process which i don't need. Unfortunately, it requires Apple Application Support installed which i cannot accept it.
I was able to do it calling the CreateControl
method.
GeckoWebBrowser obj = new GeckoWebBrowser();
obj.CreateControl();
Apparently, calling CreateControl
forces the handle to be created, so all can work as if it were inside a visible window.
Also, you may have to call Application.DoEvents
a couple of times, mostly after you demand the browser to do something.