TWebBrowser without parent window

I am trying to use TWebBrowser in an application like Console / Service (without any windows). Navigate definitely does something, but never calls onDocumentComplete. Is there any other way to access IHTMLDocument2 of some url?

Thank.

+3
source share
1 answer

Before using an instance of TWebBrowser (for example, using Navigate2), call its HandleNeeded method. This will highlight the "invisible" parent window handle and eliminate any events.

+1
source

All Articles