Maximize MDI child form

前端 未结 5 1459
半阙折子戏
半阙折子戏 2021-01-02 07:34

I\'m working on a legacy WinForms MDI application and have some trouble making the child forms behave as I want. My objective is to have the child form always maxim

5条回答
  •  猫巷女王i
    2021-01-02 08:22

    In my app I found if I put just these two lines in the form loaded event it worked. Thanks sarvjeet for the basic idea. +1 for you

    this.WindowState = FormWindowState.Minimized;
    this.WindowState = FormWindowState.Maximized;
    

提交回复
热议问题