如何让程序最小化后只在任务栏的时间那里出现啊

怎么让程序最小化后只在任务栏的时间那里出现啊?
怎么让程序最小化后只在任务栏的时间那里出现啊?


------解决方案--------------------
先将窗体的Text属性设置为 "动画系统图标示例 ",MaximiseBox、MinimiseBox、ShowInTaskbar属性均设置为False。
  
  再往窗体上添加NotifyIcon控件、ContextMenu控件各一个。
  
  将NotifyIcon控件的Icon属性设置为一个图标文件,Name属性设置为“m_trayIcon”;ContextMenu属性设置为 "contextMenu1 ";接下来开始编辑ContextMenu控件

现在我们开始编写代码部分:
private bool m_bFlag;
private bool m_bShowWnd;
修改Form1()函数为:
  
  public Form1()
  {
  //
  // Required for Windows Form Designer support
  //
  InitializeComponent();
  //
  // TODO: Add any constructor code after InitializeComponent call
  //
  m_bFlag=true;
  m_bShowWnd=true;
}

private void menuItem1_Click(object sender, System.EventArgs e)
  {
  Application.Exit();//退出应用程序
  }

private void m_trayIcon_Click(object sender, System.EventArgs e)
  {
  if(m_bShowWnd == true)//隐藏主界面
  {
  this.Visible = false;
  m_bShowWnd = false;
  }
  else//显示主界面
  {
  this.Visible = true;
  m_bShowWnd = true;
  }
  }