你是不是这样写的?this.WindowState=FormWindowState.Minimized;
这样有时确实会“最小化后就跑到窗口的左下脚”。
这样就可以了:
this.Visible=false;

解决方案 »

  1.   


    有可能问题出现在你的sendmessage方法中
      

  2.   

    我从closing方法中加入了个MessageBox,确实把消息发送了...this.Visible=false;
    没加
    最后我调用的是this.Hide();
      

  3.   

    在窗口的大小变化时作如下操作,不知道行不行啊?
    private void Form_Sizechang(object sender, System.EventArgs e)
    {
     if ( this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
         this.Hide();
    }
      

  4.   

    //将notifyicon1 设置Visible为 false,然后:private void Form1_Resize(object sender, System.EventArgs e) {
    if (this.WindowState == FormWindowState.Minimized) {
    this.Visible = false;
    this.notifyIcon1.Visible = true;
    }
    }private void notifyIcon1_Click(object sender, System.EventArgs e) {
    this.Visible = true;
    this.WindowState = FormWindowState.Normal;
    this.notifyIcon1.Visible = false;
    }//你也可以在之前为notifyicon1 设置它的icon 和contextmenu