0
你好,我使用此代碼:Web瀏覽器控件
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("about:blank");
HtmlDocument doc = webBrowser1.Document;
doc.Write("<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.");
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("about:blank");
HtmlDocument doc = webBrowser1.Document;
doc.Write("<b><i>My Name</i> is Not </b> Khan.<b>");
}
但是當我點擊按鈕,然後webBrowser1顯示空白。
總是歡迎;) – Arshad 2013-02-21 08:46:45