Maximized MDI form behavior
My program shows some browser. From a browser user can open m开发者_StackOverflow社区aximized MDI form with some report. When user is closing the report, first MDI form with browser is became maximized.
2 forms have same MDI parent. Can I change this behavior to leave my first browser form without maximizing after second report closed?
When you maximize an MDI form, you are essentially maximizing the parent form that contains the MDI form. One way to handle this is to check to see if the browser will be active when you close the report form, and if so, set the MDIParent's windowstate to normal when you close the report MDI child.
精彩评论