Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 619539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:39:59+00:00 2026-05-13T18:39:59+00:00

I have a Windows Forms application that opens MDI child forms. When I select

  • 0

I have a Windows Forms application that opens MDI child forms. When I select those forms, I need to set or render its windowstate to Maximized. The problem is, when I navigate between the open forms, it reverts back to the normal window state, and when I set the window state to maximized again, it shows the transition from normal to maximized state and it doesn’t look nice.

How can a Windows application be created that have an MDI parent form that opens many MDI childs in maximized window state?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:39:59+00:00Added an answer on May 13, 2026 at 6:39 pm

    Here’s an answer based on using the MDI “Parent Form and Child Form paradigm,” with the following assumptions :

    1. you have a MenuStrip control ‘Dock = ‘Top on your MDIParentForm, and you’ve implemented the automatic MDI &Window menu handler as described in : How to: Create an MDI Window List with MenuStrip

    2. you are creating new child forms that :

      a. do not have a MaximizeBox, MinimizeBox, etc., but may have ControlBox (for closing them)

      b. these child forms may be resizable or not : we won’t consider the implications of that here.

    3. You want these MDIChildForms to display maximized in the MDIParent Form, but not to obscure the MDIParentForm’s menu.

    Okay : assuming you have all your child Forms fully designed, “waiting in the wings” : we might see some code like this in your MDIParentForm code :

        // create instances of your child forms
        Form2 f2 = new Form2();
        Form3 f3 = new Form3();
        Form4 f4 = new Form4();
        Form5 f5 = new Form5();
    
        private void MDIParentForm1_Load(object sender, EventArgs e)
        {
            f2.Text = "subForm1";
            f3.Text = "subForm2";
            f4.Text = "subForm3";
            f5.Text = "subForm4";
    
            f2.MdiParent = this;
            f3.MdiParent = this;
            f4.MdiParent = this;
            f5.MdiParent = this;
    
            f2.Dock = DockStyle.Fill;
            f3.Dock = DockStyle.Fill;
            f4.Dock = DockStyle.Fill;
            f5.Dock = DockStyle.Fill;
    
            f2.Show();
            f3.Show();
            f4.Show();
            f5.Show();
        }
    

    At this point, the dock style ‘Fill applied to the child forms will make them full-screen, and keep them from obscuring the MDIParentForm menu : and the menu will allow you to auto-select which one is frontmost.

    Now, if you want to do fancier stuff : like resizing the child Forms, tiling them, cascading them. You are going to have to change the ‘Dock property of these child windows : and then you can make use of the built-in MDI paradigm window arranging facilities as described here : How to: Arrange MDI Child Forms

    And if you want to create multiple instances of one type of pre-defined child form : How to Create MDI Child Forms … see the example on how to use a ‘New menu entry : may prove useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 368k
  • Answers 368k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The Entity Framework designer is terrible - I've had the… May 14, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer If by "hijack" you meant sniff the packets then what… May 14, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer If you want two actions to be atomic, embed them… May 14, 2026 at 5:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.