SDI는 Single Document Interface의 약자
MDI는 Multiple Document Interface의 약자
단일 Interface를 사용할 것인지 다중 Interface를 사용할것인지에 대한 약어입니다..
MDI 화면 이동을 위해서는 MDI 폼에서 아래와 같이..이벤트를 줍니다.
private void XXXToolStripMenuItem_Click(object sender, EventArgs e)
{
보여질폼명 a = new 보여질폼명();
a.MdiParent = this;
a.WindowState = FormWindowState.Maximized; // 실행 시 최대사이즈로 시작.
a.Show();
}
프로그램 실행시 시작 폼 설정은 prorgram.cs 파일에서 Main 함수를 수정. ( C#은 무조건 Main 함수로부터 시작됨. )
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new 폼이름());
}