如何在Visual Studio 2008中设置布局? [英] How to set layout in visual studio 2008?

查看:97
本文介绍了如何在Visual Studio 2008中设置布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi frds ..
我在Visual Studio 2008中遇到问题.
在Visual Studio 2005中没有像布局这样的选项.
如果有其他选择,请告诉我.

hi frds..
i have a problem with visual studio 2008.
there is no option like layout is present in visual studio 2005.
if there is any alternate of it ..plz tell me about it.
thanks.

推荐答案

VS 2008缺少VS 2005上没有的可用内容.正确查找.如果找不到某些功能,请尝试问你到底想做什么.您想对布局做什么?


将按钮放在指定位置"是没有意义的.这只会导致UI设计不良,几乎完全缺乏可维护性.您需要避免使用手动坐标和大小.始终将填充面板与Dock和Padding一起使用.请查看我过去关于以下主题的答案:

屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

使用简单的代码示例:如何停靠按钮,以便它可以调整形式 [ GUI外观-C#.Net [
Nothing available on VS 2005 is missing from VS 2008. Look properly. If you fail to find some feature, try to ask what exactly you want to do. What do you want to do about layout?


Putting a button in "specified place" is pointless. It can only lead to poorly-designed UI and nearly complete lack of maintainability. You need to avoid using manual coordinates and sized. Always use padded panels with Dock and Padding. Please see my past answers on the topic:

Zom Out malfunctions when Screen resolution changes[^].

With a simple code sample: how to dock button so that it can adjust with the form[^].

See also: GUI Apperance - C#.Net[^].

—SA


这篇关于如何在Visual Studio 2008中设置布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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