问题
I'm using WebBrowser control to fill a web page . is it possible to using WB inside a thread ?
Thank you
回答1:
TWebBrowser
is a VCL control. Therefore, it must be created and operated in the main VCL thread.
The control already acts asynchronously, though. When you tell it to navigate to a page, it will do that in the background and notify you (via OnNavigateComplete
and other events) when it's finished.
来源:https://stackoverflow.com/questions/3735410/is-it-possible-to-using-webbrowser-in-a-thread-delphi