开发者

Maximized MDI form behavior

开发者 https://www.devze.com 2022-12-30 21:33 出处:网络
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 maximize

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号