对话框/表格显示最大化 [英] Dialogue Boxes / Forms appear Maximised

查看:92
本文介绍了对话框/表格显示最大化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好那里



我想知道是否有人可以帮助我。我有一个使用Visual Studio 2008中开发的标准表单和对话的项目。直到大约一个月前,每件事情都运行正常,但是现在在我的机器上部署的版本中,表单在打开时立即最大化。表单本身没有最小化或最大化设置。表格上的项目位置似乎也有些错误。



奇怪的是,在VS2008上运行的调试版本都显示正确,只有在我部署时到VS2008环境以外的我的机器发生的事情。



还有其他人经历过这样的事吗?可能是注册表相关还是框架相关?



非常感谢

Jem

Hello there

I wonder if any one can help me. I have project that uses standard forms and dialogues developed in Visual Studio 2008. Up until about a month ago, every thing was running fine, however now in the deployed version on my machine, the forms are maximised instantly upon opening. The forms themselves do not have minimise or maximise set on them. The positions of items on the forms seem to have gone slightly wrong also.

Strangely, in the debug version running on VS2008 all appear correctly, it is only when I deploy to my machine outside the VS2008 environment that it happens.

Anybody else experienced anything like this? Could it be registry related or framework related?

Many thanks
Jem

推荐答案

Hi,

It seems you are not adding event handler to dynamic combo boxes  which you are adding at the run time. Add it and it will work fine.


RKS


这篇关于对话框/表格显示最大化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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