Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2063
  • Last Modified:

C# Winforms MDI child

I using C# and .NET 2.0 to creat Winforms in VS 2005.  I have a child MDI form that is created on File|New - I want the MDI form to open maiximized in the parent MDU form - how do I do that?
0
tsmolskow
Asked:
tsmolskow
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Set the WindowState() property of the form before you show it:

            Form someForm = new Form();
            someForm.MdiParent = this;
            someForm.WindowState = FormWindowState.Maximized;
            someForm.Show();
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now