首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

webBrowser1.ReadyState能在线程中使用吗?该怎么解决

2012-01-26 
webBrowser1.ReadyState能在线程中使用吗?while(webBrowser1.ReadyState!WebBrowserReadyState.Complete)

webBrowser1.ReadyState能在线程中使用吗?
while   (webBrowser1.ReadyState   !=   WebBrowserReadyState.Complete)
                Application.DoEvents();
这段代码能放在线程中吗?

[解决办法]
up
[解决办法]
You can not access a Windows Form control in a worker thread. You can only marshal the call back to the UI using Control.Invoke.

热点排行