表格的位置 [英] The position of a form

查看:64
本文介绍了表格的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将表单放在后台位置?

我的第一个表单与我的第二个表单交互,这意味着我的第一个表单的按钮是第二个表单...

我该怎么办?







我的尝试:



查看图片了解更多详情。

How to put a form in a background position ?
My first form interact with my second form which means that the buttons of my first form are in the second form...
What can I do ?



What I have tried:

Look at the picture for more details.

推荐答案

问题在于,这正是应该发生的事情。你不应该把控件放在MDI父母身上!



MDI父表单上的任何控件都优先于MDI子表单,并且总是出现在前台 - 即重叠时在MDI子项的顶部。

如果要保留此MDI,则将按钮放在Panel上并将其Dock属性设置为Left,Right,Top或Bottom - MDI Child表格应该最初避开该空格,因此它们不会重叠。



个人?我不会将MDI用于新项目,它已经过时了。
The problem is that that is exactly what is supposed to happen. You aren;t supposed to put controls on an MDI Parent!

Any controls on your MDI parent form have precedence over MDI child forms and will always appear in the foreground - i.e. over the top of your MDI child when they overlap.
If you want to keep this MDI, then put your buttons onto a Panel and set it's Dock property to the Left, Right, Top, or Bottom - the MDI Child forms should then initially avoid that space, so they won't overlap.

Personally? I wouldn't use MDI for new projects, it's rather outdated.


这篇关于表格的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆