日期:2014-05-19  浏览次数:21039 次

C#如何在托盘处弹出一个气泡框
C#如何实现当程序界面最小化时在托盘处弹出一个气泡框?谢谢

------解决方案--------------------
private void Form1_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.ShowInTaskbar = false;
this.Visible = false;
this.notifyIcon1.Visible = true;
this.notifyIcon1.ShowBalloonTip(2000);
}
}

private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.ShowInTaskbar = true;
this.notifyIcon1.Visible = false;
}