|
이 문서는 수동으로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오.
|
번역
원본
|
Form.IsMdiContainer 속성
.NET Framework 4
어셈블리: System.Windows.Forms(System.Windows.Forms.dll)
// Create a new form. Form mdiChildForm = new Form(); private void Form1_Load(object sender, System.EventArgs e) { // Set the IsMdiContainer property to true. IsMdiContainer = true; // Set the child form's MdiParent property to // the current form. mdiChildForm.MdiParent = this; // Call the method that changes the background color. SetBackGroundColorOfMDIForm(); } private void SetBackGroundColorOfMDIForm() { foreach ( Control ctl in this.Controls ) { if ((ctl) is MdiClient) // If the control is the correct type, // change the color. { ctl.BackColor = System.Drawing.Color.PaleGreen; } } }
To run this example paste the following code in a new form.
Windows 7, Windows Vista SP1 이상, Windows XP SP3, Windows XP SP2 x64 버전, Windows Server 2008(Server Core는 지원되지 않음), Windows Server 2008 R2(Server Core는 SP1 이상에서 지원됨), Windows Server 2003 SP2
.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
참고