C#Mdi Child表单自动调整大小问题 [英] C# Mdi Child form auto resize problem

查看:99
本文介绍了C#Mdi Child表单自动调整大小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么例如,当我在MDI容器中加载子表单时,表单会自动调整大小?

它真的需要看起来很完美,这就是我在这里问的原因,也许有人有这个之前的问题并且知道解决方案,

这就是我在视觉工作室中看到儿童表格的方式:

http://i.imgur.com/IMisYt5.png [ ^ ]

这就是我在实际应用程序运行时的看法:

http://i.imgur.com/tOQ3QLK.png [ ^ ]



btw是visual studio 2013,希望你能提前帮助,谢谢你。 />


[

因为你可以看到图片框很小,

按钮的镜像因为看起来有所改变更接近..

]

Why for example, when I load a child form in my MDI container, the form is auto resized?
It really need to be perfect looking and thats why i asked here, maybe someone had this problem before and knows the solution,
this is how i see the child form in my visual studio:
http://i.imgur.com/IMisYt5.png[^]
and this is how i see it in the actual application when its running:
http://i.imgur.com/tOQ3QLK.png[^]

btw is visual studio 2013, hope you will help, thanks in advance.

[
as you can see the picturebox is smalled,
the mirgin of the buttons is changed since they look much closer..
]

推荐答案

一个,从你展示过的帽子,你根本不应该使用MDI。



其次,如果你只有一个在MDI中最大化的子形式,所有子形式都被最大化。这将调整表单大小以填充MDI客户端区域。你不能拒绝这种行为。就像我说的那样,你所展示的一切都没有理由使用MDI。



接下来,你的表单上的控件看起来没有停靠/锚定/在适当的容器中正确控制他们的布局。看起来你只是将控件放在窗体上,并没有采取任何措施来控制它们的布局。
One, from hat you've shown, you shouldn't be using MDI at all.

Second, if you have just ONE child form maximized in MDI, ALL child forms are maximized. This will resize your forms to fill the MDI client area. You cannot turn that behavior off. Like I said, nothing you're shown justifies using MDI at all.

Next, it looks like your controls on your form are not docked/anchored/in proper containers to properly control their layout. It looks like you just dropped your controls on the form and did nothing to control their layout.


这篇关于C#Mdi Child表单自动调整大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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