也是用了这些代码的!
=============================================
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState==FormWindowState.Minimized)
{
this.Hide();
this.ShowInTaskbar = false;
notifyIcon1.Visible = true;
} } private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
if(this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
{
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.Activate();
this.ShowInTaskbar = true;
} }
=========================================
点击窗口最小化按钮后就什么也看不见了,NotifyIcon怎么不见在右下角显示呢????