Visual Studio会在不通知我的情况下继续调整表单的大小,请帮助! [英] Visual Studio keeps resizing my form without me telling it to, help!

查看:91
本文介绍了Visual Studio会在不通知我的情况下继续调整表单的大小,请帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Visual Studio2008。每当我经常访问其中一个表单的设计器视图时,设计器就会使该表单稍大一些。这发生在我的尺寸最小的表格上。我希望表单为最小尺寸,为什么它会不断调整我的尺寸?

I am running visual studio 2008. Every so often when I go to the designer view of one of my forms, the designer will make the form slightly larger. This happens on forms where I have a minimum size. I want the form to be the minimum size so why does it keep adjusting the size on me?

推荐答案

我遇到了这个问题带有托管用户控件的特定表格。每次我执行完整的重建解决方案时,都会使表格更短。找到了一个简单的解决方案:在设计器中,将表单的最小尺寸属性设置为与size属性相同。现在,当设计师四处寻找更改尺寸的方法时,它将最终变为最小尺寸-这是您实际需要的尺寸。

I was having this issue with a particular form that hosted a user control. Everytime I did a full Rebuild Solution it would make the form shorter. Found a simple solution: in the designer, set the minimum size property of the form to be the same as the size property. Now when the designer messes around trying to change the size it will end up as the minimum size - which is the size you actually want.

这篇关于Visual Studio会在不通知我的情况下继续调整表单的大小,请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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