,net 2.0表单保持原始大小 [英] ,net 2.0 form stays in originall size

查看:61
本文介绍了,net 2.0表单保持原始大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有点难以描述。



带有面板(DOCK BOTTOM)和TableLayoutPanel(DOCK FILL)的表格。

TableLayoutPanel有2行,每列1列,用户编写的控件。



在开发环境中调整表单的工作正常。



如果我启动应用程序,创建表单实例并显示它,则Windowstate将更改为最大化设置。尽管如此,该小组仍然处于开发环境中的位置。



我正在研究这个问题很长一段时间并且无法找到解决方案。



我必须补充说,这只是我项目中大约100个表格中的一个。

所有其余的工作原理应该如此,这是唯一造成麻烦的形式。

我已经使用相同的控件将属性设置与其他形式进行了比较,没有区别。



如果有人能给我一个提示,我将不胜感激。



提前致谢,



托马斯

解决方案

我试着完全一样,我不能复制你的问题。

表格,带面板, Dock底部和TableLayoutPanal Dock填充以及各种方式在启动时最大化teh表单 - 面板显示为我所期望的。 TLP填满了屏幕,底部覆盖着一个较小的面板。



所以我这样做你不是,或者你这样做我不是?

Bit difficult to describe.

A form with a panel (DOCK BOTTOM) and a TableLayoutPanel (DOCK FILL).
TableLayoutPanel has 2 rows, 1 column each with a user-written control.

Sizing the form in the development environment works fine.

If I start the application, create an instance of the form and show it, the Windowstate changes to maximized as set. Nevertheless, the panel is still at his position as set in the development environment.

I am working on this for quite a time and was not able to find a solution.

I have to add that this is only one out of about 100 forms in my project.
All the rest works as it should, this is the only form that makes trouble.
I have compared the property settings to other forms using the same controls, no difference.

If anybody could give me a hint it would be greatly appreciated.

Thanks in advance,

Thomas

解决方案

I tried to do exactly the same, and I can''t duplicate your problem.
A form, with a panel, Dock bottom, and a TableLayoutPanal Dock fill and various ways to maximise teh form on startup - the panels appear as I expect. The TLP fills the screen, with a smaller panel overlaying in at the bottom.

So what I doing that your aren''t, or you doing that I am not?


这篇关于,net 2.0表单保持原始大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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