给系统托盘对象添加事件
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
private void notifyIcon1_Click(object sender, System.EventArgs e)
{
this.show();
}
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
private void notifyIcon1_Click(object sender, System.EventArgs e)
{
this.show();
}
this.Activate();
this.WindowState=FormWindowStation.Normal;