private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocumentClass a = new mshtml.HTMLDocumentClass();
mshtml.IHTMLDocument2 t = a;
t.write("<html></html>");
t.close(); mshtml.IHTMLDocument2 b = a.createDocumentFromUrl("http://www.sina.com","null");
while (b.readyState!="complete")
{
}
MessageBox.Show("hello");
}
{
HTMLDocumentClass a = new mshtml.HTMLDocumentClass();
mshtml.IHTMLDocument2 t = a;
t.write("<html></html>");
t.close(); mshtml.IHTMLDocument2 b = a.createDocumentFromUrl("http://www.sina.com","null");
while (b.readyState!="complete")
{
}
MessageBox.Show("hello");
}
{
Application.DoEvents()
}