public delegate string GetStringHandler();
public string GetDocumentText()
{
if (InvokeRequired)
{
return Invoke(new GetStringHandler(GetDocumentText)) as string;
}
else
{
if (this.webBrowser1.InvokeRequired)
{
}
else
{
return webBrowser1.Document.Body.OuterHtml;
}
}
}我在else括号下的第二个返回值中得到错误。
如何调用webBrowser1?
我遗漏了什么?
发布于 2017-01-11 08:20:54
public delegate string GetStringHandler();
public string GetDocumentText()
{
if (InvokeRequired)
{
return Invoke(new GetStringHandler(GetDocumentText)) as string;
}
else
{
return webBrowser1.Document.Body.OuterHtml.ToString();
}
}https://stackoverflow.com/questions/41580721
复制相似问题