Is it possible to using WebBrowser in a Thread ? (Delphi)

拥有回忆 提交于 2019-12-25 16:46:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!