双击最大化/最小化 [英] maximizes/minimizes on Double Click

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

问题描述

我有一个表单,我已经删除了最小化和最大化按钮,将FormBorderStyle设置为none,添加了拖放行为,但我希望我的表单大小是静态的。现在,双击最大化/最小化。我保持相同的最大,最小尺寸。然后我的表单双击。我怎么能阻止它?

I have a form which I''ve removed the minimize and maximize buttons from, set the FormBorderStyle to none, added drag & drop behaviour, but I want my form size to be static. Now form maximizes/minimizes on Double Click. I''ve kept same max ,min size same. Then my form moves on double click. How can I stop it?

推荐答案

正如您对解决方案1的评论所看到的,OriginalGriff和我都能够通过设置ControlBox来重现您描述的行为属性为False,同时保持MaximizeBox和MinimizeBox属性为True。



如果这就是您所做的,您只需将MaximizeBox和MinimizeBox属性设置为错误。





Soren Madsen
As you can see by the comments to Solution 1, both OriginalGriff and myself were able to reproduce the behavior you describe by setting the ControlBox property to False, while keeping the MaximizeBox and MinimizeBox properties True.

If that is what you have done, all you have to change is set the MaximizeBox and MinimizeBox properties to False.


Soren Madsen


如果已将MaximizeBox和MinimizeBox属性设置为false ,然后双击标题栏应该不再有效 - 当然它不适合我。

那么你在做什么我不是?
If you have set the MaximizeBox and MinimizeBox properties to false, then double click in the title bar should no longer work - certainly it doesn''t for me.
So what are you doing that I am not?


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

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