C# Winforms MDI child

Posted on 2006-04-03
Last Modified: 2013-11-23
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?
Question by:tsmolskow
    1 Comment
    LVL 85

    Accepted Solution

    Set the WindowState() property of the form before you show it:

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

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    This is about my first experience with programming Arduino.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now