[求助]点击最小化按钮使程序图标出现在系统托盘
做了个小程序,希望点击form的最小化按钮的时候可以把它最小化到系统托盘那一栏图标里面,要用什么属性啊?
[CODE]private void MainForm_Resize(object sender, System.EventArgs e)
{
if(this.WindowState ==System.Windows.Forms.FormWindowState.Minimized)
{
this.notifyIcon1.Visible = true;
this.Hide();
}
}
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Visible = true;
}[/CODE]