2014-12-19 158 views

回答

-1

在Form1變化的IsMdiContainer =真

和負載窗口2:

Form2 form2 = new Form2(); 
    form2.MdiParent = this; 
    form2.Show(); 
+0

感謝您的建議。但我在我的項目中完成了這項工作。 – 2014-12-19 13:20:54

+0

所以請發送任何其他解決方案 – 2014-12-19 13:21:10

1

您可以檢查,看看是否形式是getting maximized然後刪除窗體的Text屬性在該州:

private string formText = string.Empty; 

protected override void WndProc(ref Message m) { 
    if (m.Msg == 0x0112) { 
    if (m.WParam == new IntPtr(0xF030)) { 
     formText = this.Text; 
     this.Text = string.Empty; 
    } else { 
     this.Text = formText; 
    } 
    } 
    base.WndProc(ref m); 
} 
相關問題