我不建議用Active and Deactive來作, 你可以在視窗關閉事件中把表單隱藏就可以了
例如:
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
e.Cancel = true;
this.Hide();
}
然後在notifyIcon點擊時再將他顯示出來就可以了
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
}
不知道是不是你的意思,