让一个窗体在这个程序的所有窗体的上面 
但是又不能像topMost=true后的那样 在所有程序的最上面显示

解决方案 »

  1.   

    using System.Runtime.InteropServices; [DllImport("user32")] 
    public static extern int SetParent(int hWndChild, int hWndNewParent); //temp2是你的子form 
    temp2.MdiParent = this; 
    temp2.Show(); 
    SetParent((int)temp2.Handle, (int)this.Handle); 
      

  2.   

    showmodeldialog();
    或者是
    窗体.ToMost=true;
      

  3.   

    http://topic.csdn.net/u/20100320/14/20d666ce-f355-4335-a0a8-73df5fa23f82.htmlprivate void Form1_Activated(object sender, EventArgs e)
    {
        foreach( Form frm in System.Windows.Forms.Application.OpenForms)
        {
            if (frm is Form2) frm.BringToFront();
        }
    }