开发者

Trouble bringing an MDI form to the front

开发者 https://www.devze.com 2023-03-21 11:06 出处:网络
Imagine I have two MDI forms inside of a parent form. Each form has many many controls inside, some are even custom Infragistics controls such as an UltraPanel.

Imagine I have two MDI forms inside of a parent form.

Each form has many many controls inside, some are even custom Infragistics controls such as an UltraPanel.

Currently when both forms are open and in n开发者_JS百科ormal sized mode (not maximize or minimized), I can only bring one form to the front of the other by clicking on the forms title bar.

If I click inside the form itself, it's not brought to the front. Is there some way for me to capture the click anywhere inside the MDI form and bring that one to the front?


Add a DoubleClick event to the child form and set:

this.WindowState = FormWindowState.Maximized;
0

精彩评论

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