2013-04-10 95 views

回答

0

當你從MDI父開闢新的形式設置其屬性size

Form childForm = new Form(); 
childForm.MdiParent = this; 
childForm.Size = new Size(100, 100);//edit size 
childForm.Show(); 
0

好吧,我發現我的回答感謝IRSOG刪除答案:

Form form= new Form(); 
    form.MdiParent = this; 
    this.Size = new Size(form.Width, form.Height); 
    form.Show(); 

希望這將幫助別人