개발
C#에서 폼에 폼 도킹하기
coolsharp_backup
2011. 5. 3. 16:09
C# 프로그래밍 중 한폼에 다른 폼을 도킹해야 할 필요가 있을 때가 있다.
이때 다음과 같이 코드를 작성하면 된다.
이때 다음과 같이 코드를 작성하면 된다.
frmApplicationInfo ap = new frmApplicationInfo();
AddOwnedForm(ap);
ap.MdiParent = this;
ap.Parent = pnlMain;
ap.Dock = DockStyle.Fill;
ap.Show();
AddOwnedForm(ap);
ap.MdiParent = this;
ap.Parent = pnlMain;
ap.Dock = DockStyle.Fill;
ap.Show();