为什么在Visual Studio中继承的表单会自行调整大小 [英] Why would an inherited form resize itself in Visual Studio

查看:75
本文介绍了为什么在Visual Studio中继承的表单会自行调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的申请表中有一些表格。一些视觉上继承的表单在Visual Studio中自行调整大小

- 破坏了我以前的设置。锁定

表格也没有效果。


它有问题的表格似乎是

中的继承结构超过2级深度。


如下:


ViewWin - 我正在使用的MVC结构的一部分。

申请表中的所有表格都从此继承

\ /

\ /

二级表格 - 这些似乎是好的

\ /

\ /

三级表格 - 这些表格似乎一直在调整大小

任何想法或已知问题。


问候,


尼克

Hi,

I have some forms in my application. Some visually inherited forms resize
themselves in Visual Studio - ruuning my previous settings. Locking the
form has no effect either.

The forms it has problems with seem to be when the inheritance structure in
greater than 2 levels deep.

It is as follows:

ViewWin - part of the MVC structure I''m using. All forms in the
application inherit from this
\/
\/
Second Level Form - these seem to be Ok
\/
\/
Third Level Form - these forms seems to resize all the time

Any ideas or known issues with this.

Regards,

Nick

推荐答案

你好尼克,


首先,我想确认一下我对你的问题的理解。从

您的描述中,我了解一些继承的表格将在设计时自动调整大小

。如果有任何误解,请感觉

免费让我知道。


据我所知,如果有一些控件有锚定设置

父表单,代码生成器有时会出错。这是关于此的KB

文章。

http://support.microsoft.com/default...B;EN-US;316560


请检查这是否是您遇到的问题。如果没有,你能告诉我你需要知道的VS.NET版本吗?谢谢!


Kevin Yu

=======

此帖子已提供按原样没有保证,也没有赋予

权利。

Hi Nick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that some inherited forms will be resized
automatically at design time. If there is any misunderstanding, please feel
free to let me know.

As far as I know, if there are some controls which has anchor settings in
the parent form, the code generator will sometimes goes wrong. Here is a KB
article about this.

http://support.microsoft.com/default...B;EN-US;316560

Please check to see if this is the issue you have met. If not, could you
please let me know the version of VS.NET you''re using? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


嗨尼克,


首先,我想确认一下我对你的问题的理解。从

您的描述中,我了解一些继承的表格将在设计时自动调整大小

。如果有任何误解,请感觉

免费让我知道。


据我所知,如果有一些控件有锚定设置

父表单,代码生成器有时会出错。这是关于此的KB

文章。

http://support.microsoft.com/default...B;EN-US;316560


请检查这是否是您遇到的问题。如果没有,你能告诉我你需要知道的VS.NET版本吗?谢谢!


Kevin Yu

=======

此帖子已提供按原样没有保证,也没有赋予

权利。

Hi Nick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that some inherited forms will be resized
automatically at design time. If there is any misunderstanding, please feel
free to let me know.

As far as I know, if there are some controls which has anchor settings in
the parent form, the code generator will sometimes goes wrong. Here is a KB
article about this.

http://support.microsoft.com/default...B;EN-US;316560

Please check to see if this is the issue you have met. If not, could you
please let me know the version of VS.NET you''re using? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


" Nick Zdunic" < NI ** @ ss.com.au>在消息中写道

新闻:你_ ******************* @ news-server.bigpond.net.au ...
"Nick Zdunic" <ni**@ss.com.au> wrote in message
news:u_*******************@news-server.bigpond.net.au...
任何想法或已知问题。




这是一个比较着名的问题。知识库文章提到锚定

控件,但似乎也发生在

表单上没有控件的情况下,或者当它们没有锚定时。


唯一真正的解决方法是不使用表单设计器。


Marc



This is one of the more well-known issues. The KB article mentions anchored
controls, but it seems to happen in cases where there are no controls on the
form as well, or when they aren''t anchored.

The only real workaround is to not use the form designer.

Marc


这篇关于为什么在Visual Studio中继承的表单会自行调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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