coolsharp의 놀이터

C# 프로그래밍 중 한폼에 다른 폼을 도킹해야 할 필요가 있을 때가 있다.

이때 다음과 같이 코드를 작성하면 된다.

            frmApplicationInfo ap = new frmApplicationInfo();
            AddOwnedForm(ap);
            ap.MdiParent = this;
            ap.Parent = pnlMain;
            ap.Dock = DockStyle.Fill;
            ap.Show();

Posted by coolsharp_backup