110,537
社区成员
发帖
与我相关
我的任务
分享
void ieInstance_DocumentComplete(object pDisp, ref object URL)
{
string url = URL as string;
if (string.IsNullOrEmpty(url)
|| url.Equals("about:blank", StringComparison.OrdinalIgnoreCase))
{
return;
}
InternetExplorer explorer = pDisp as InternetExplorer;
// Set the handler of the document in InternetExplorer.
if (explorer != null)
{
MessageBox.Show(url);//这句是我加的
SetHandler(explorer);
}
}