Essentially I have a MDI Parent window, which runs my MainMenu form as a MDI Child, from the Main Menu I can go open other forms. I had the MainMenu then resize the MDI Parent to the size of the MDI Child form. This works perfectly, however the problem is when I go back to the MainMenu form, for some reason the size property has changed to whichever form I had opened.
private void MDI_MdiChildActivate(object sender, EventArgs e)
{
try
{
this.ClientSize = this.ActiveMdiChild.Size;
this.CenterToScreen();
}
catch { }
}
This is the code for resizing my MDI Parent.
I am not asking about how to get the size of a Parent or child form, my code works just fine one way. The issue is that the MainMenu size property changes during run time despite me never changing the size of the MainMenu. The MainMenu form is not the MDI Parent but a child also.