如何使应用程序最小化的时候成图标现实在屏幕右下角成小图标,象QQ或MSN那样?谢谢

解决方案 »

  1.   

    托盘..加个notifyIcon控件就行了..
    再在主窗体事件里加上.
    private void Form1_SizeChanged(object sender, System.EventArgs e)
    {
    if(this.WindowState==System.Windows.Forms.FormWindowState.Minimized)
    {
    //窗体隐藏

    this.notifyIcon1.Visible=true; //窗体显示时,托盘图标可见
    this.ShowInTaskbar = false;//任务栏隐藏
    }
    else if(this.WindowState==System.Windows.Forms.FormWindowState.Normal)
    {
    this.notifyIcon1.Visible=false;  
    this.ShowInTaskbar = true;
    }
    }