是否有可能在一个线程中使用web浏览器? (德尔福) [英] Is it possible to using WebBrowser in a Thread ? (Delphi)

查看:182
本文介绍了是否有可能在一个线程中使用web浏览器? (德尔福)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用WebBrowser控件来填充网页。是有可能使用WB一个线程内?

I'm using WebBrowser control to fill a web page . is it possible to using WB inside a thread ?

感谢您

推荐答案

TWebBrowser 是一个VCL控制。因此,它必须被创建并在主VCL线程操作

TWebBrowser is a VCL control. Therefore, it must be created and operated in the main VCL thread.

控制已异步行为,虽然。当你告诉它导航到一个页面,它会做,在后台,并通知您(通过 OnNavigateComplete 等事件)时,它的完成了。

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.

这篇关于是否有可能在一个线程中使用web浏览器? (德尔福)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆