1
5 개의 MDI 하위가있는 기본 폼이 있습니다. 기본 폼이 만들어지면 mdi 하위가 만들어지고 표시됩니다.MDI Child.show()는 이상한 방식으로 양식을 표시합니다.
화면에 다른 위치를 지정하지만 표시되면 기본 위치에서 시작하여 불안정한 방식으로 새 위치로 이동합니다. 양식을 표시하기 전에 위치를 지정하려고 시도했지만 Show.Show를 호출 한 후 예상대로 기본 위치로 이동하는 경향이 있습니다. 이 이동이 기본 위치에서 새 위치로 표시되지 않도록 할 방법이 있습니까?
여기에 코드 조각
groupSettingsForm.Show();
groupSettingsForm.Location = new Point(0, 0);
dsForm.Show();
dsForm.Location = new Point(groupSettingsForm.Width, 0);
dPlots.Show();
dPlots.Location = new Point(groupSettingsForm.Width, dsForm.Height);
alertsForm.Show();
alertsForm.Location = new Point(groupSettingsForm.Width, dsForm.Height + dPlots.Height);
dataValuesForm.Show();
dataValuesForm.Location = new Point(0, groupSettingsForm.Height);
나는이 시도하지만 내가 그냥이 비슷한했다 나
groupSettingsForm.Location = new Point(0, 0);
groupSettingsForm.Show();
dsForm.Location = new Point(groupSettingsForm.Width, 0);
dsForm.Show();
dPlots.Location = new Point(groupSettingsForm.Width, dsForm.Height);
dPlots.Show();
alertsForm.Location = new Point(groupSettingsForm.Width, dsForm.Height + dPlots.Height);
alertsForm.Show();
dataValuesForm.Location = new Point(0, groupSettingsForm.Height);
dataValuesForm.Show();