调整Windows窗体的大小 [英] Resize Windows Form

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

问题描述

我的表格是其他人的MDI Parent。

我想要一个MDI Child,我可以根据我将在其上显示的一些问题调整大小...

现在它是825 X 788。每当我尝试设置一个高于788的值时,它就不允许我重置为788

我在创建子表单时尝试设置高度,但没有成功


以下是我的设置:

AutoScaleMode =无

AutoSize = False

AUtoSizeMode =只成长

COntrolBox = false

FormBorderStyle =无

LOcked = false





你能帮忙吗?

谢谢...

I have a form that is MDI Parent for others.
I want to have an MDI Child that I can resize according to a number of questions I will display on it...
Now it''s 825 X 788. Whenever I try to put a value higher than 788, it doesn''t allow me and resets itself to 788
I tried to set the height when I create the child form, but no success

Here are my settings:
AutoScaleMode= None
AutoSize= False
AUtoSizeMode= Grow Only
COntrolBox=false
FormBorderStyle=None
LOcked=false


Can you, please help?
Thank you...

推荐答案

这是一个限制窗户形成设计师。它不会让你选择高于你正在使用的屏幕的分辨率(实际上我认为它允许你的分辨率+ 20px,所以我认为你的分辨率是1024或1280乘768)。唯一真正的解决方法是在构造函数中设置大小,并在表单上放置一个您想要的大小的面板,这样您就可以滚动以正确放置对象。或者你可以尝试开发一种不需要那么多空间的表格......
This is a limitation of the windows forms designer. It will not let you select a resolution higher than the screen you are working on (actually I think it allows something like your resolution + 20px, so I assume your resolution is 1024 or 1280 by 768). The only real way around this is to set the size in the constructor and place a panel on your form that is the size you want, that way you can scroll around to place the objects correctly. Or you can try to develop a form that doesn''t need that much space...


这篇关于调整Windows窗体的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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