看了一个帖子,自己也遇到这样的问题:
使用WebBrowser控件显示网页,使用NotifyIcon控件将其最小化到工具栏里,同时主界面隐藏,双击NotifyIcon显示主界面时,WebBrowser却显示不出任何内容,求救!!
请大家帮忙 private void Form3_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
e.Cancel=true;
this.Hide();
this.ShowInTaskbar=false;
this.notifyIcon1.Visible=true; }
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{ this.Show(); //this.axWebBrowser1.Update();
//this.axWebBrowser2.Refresh();
if (this.WindowState==FormWindowState.Minimized)
this.WindowState=FormWindowState.Normal;
this.notifyIcon1.Visible=false;
}
使用WebBrowser控件显示网页,使用NotifyIcon控件将其最小化到工具栏里,同时主界面隐藏,双击NotifyIcon显示主界面时,WebBrowser却显示不出任何内容,求救!!
请大家帮忙 private void Form3_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
e.Cancel=true;
this.Hide();
this.ShowInTaskbar=false;
this.notifyIcon1.Visible=true; }
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{ this.Show(); //this.axWebBrowser1.Update();
//this.axWebBrowser2.Refresh();
if (this.WindowState==FormWindowState.Minimized)
this.WindowState=FormWindowState.Normal;
this.notifyIcon1.Visible=false;
}
private void Form3_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
object flags = (2 | 4 | 8);
object targetFrame = null;
object postData = null;
object headers = null; this.axWebBrowser2.Navigate("http://www.google.com",ref flags,ref targetFrame,ref postData,ref headers);
this.axWebBrowser2.PointToClient
}