C# WebBrowserのページリード待機

スポンサーリンク

private void wait_load()
{
Application.DoEvents();
while (
this.webBrowser1.IsBusy ||
this.webBrowser1.ReadyState != WebBrowserReadyState.Complete ||
this.webBrowser1.Document.Body.InnerHtml == null
)
{
System.Threading.Thread.Sleep(10);
Application.DoEvents();
}
return;
}

コメント

タイトルとURLをコピーしました