例如QQ,和某个QQ聊天,把这个QQ聊天界面最小化。
再双击QQ软件的那个人,这个最小化的QQ界面又显示了出来。我的意思就是一个窗体被最小化了,怎么用code把它取消最小化,显示出来?

解决方案 »

  1.   

    show(),之前那个最小化,直接使用hide()方法,不用自带的!
    就这样就可以了!
      

  2.   


    我有想过这,最小化的事件是什么呢?还是最好是code取消最小化,不然这种效果对程序的意义不是很大。
      

  3.   

    this.WindowState = FormWindowState.Normal;
      

  4.   

    //托盘图标
                notifyIcon_M.Icon = this.Icon;
                notifyIcon_M.Text = "xxx";
                notifyIcon_M.Visible = true;
    弄个托盘 然后自己写最大最小事件
      

  5.   

    同意楼上所说,用NotifyIcon组件:    private void notifyIcon1_DoubleClick(object Sender, EventArgs e) 
        {
            // Show the form when the user double clicks on the notify icon.        // Set the WindowState to normal if the form is minimized.
            if (this.WindowState == FormWindowState.Minimized)
                this.WindowState = FormWindowState.Normal;        // Activate the form.
            this.Activate();
        }
      

  6.   

      notifyIcon
    msdn上有一个例子。