如果Form在最大尺寸下,如何在设计时布局控件? [英] If the Form in the Max size , how to layout controls at design time ?

查看:92
本文介绍了如果Form在最大尺寸下,如何在设计时布局控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi开发人员

我的程序包含一个Form,并且该Form应该始终为最大尺寸(WindowState = MaxiMized)
我的问题是:我可以在设计时布置pictureBoxes,Button和其他控件吗?

在此先感谢

hi developers

my programme contains a Form, and that Form should always be in Max size (WindowState = MaxiMized )
My question is : can I layout pictureBoxes , Buttons and other controls at design time

thanks in advance

推荐答案

是的.但是您认为它将产生什么效果?
用户正在运行什么分辨率? 1024 x 768? 1680 x 1050? 640 x 480?
他/她的屏幕是什么形状-旧样式的方形屏幕,还是较新的宽屏屏幕?

它会和你的一样吗?总是吗?

当然不是!

因此,与其根据最大化的内容进行布局(而不是让我烦恼,不应该让我的应用程序最大化运行-浪费过多的屏幕空间),请根据内容进行合理的布局.然后通过使用停靠和锚点属性调整屏幕大小.

请记住,用很多控件填充任何表单是一个非常糟糕的主意-这只会使您感到困惑.而是根据需要打开子表单,或使用选项卡.
Yes. But what effect do you think it will have?
What resolution is the user running? 1024 x 768? 1680,x 1050? 640 x 480?
What shape is his / her screen - old style square, or newer widescreen?

Is it going to be the same as yours? Always?

Of course it isn''t!

So instead of laying it out for maximised (which would annoy the heck out of me, none of my apps run maxed - too much wasted screen real estate), lay it out for a sensible size, based on the content. Then allow for screen resizing by using the dock and anchor properties.

Remember, it is a very bad idea to fill any form with lots of controls - it just gets confusing. Instead, open sub forms as needed, or use tabs.


这篇关于如果Form在最大尺寸下,如何在设计时布局控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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