如何停止双击窗口标题栏以最大化FormBorderStyle.FixedToolWindow的窗口? [英] How can I stop a double click of the window title bar from maximizing a window of FormBorderStyle.FixedToolWindow?

查看:30
本文介绍了如何停止双击窗口标题栏以最大化FormBorderStyle.FixedToolWindow的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很生气,我答应给用户一个不能调整大小的固定窗口,但是当然可以允许他们双击标题栏以最大化此不可调整大小"的窗口.如何关闭此功能?我可以使用winforms代码吗,还是必须使用Win32?

I'm annoyed that the I'm promised a fixed window that the user can't resize, but then of course they're allowed to double click the title bar to maximize this 'unresizable' window. How can I turn this off? Can I do it with winforms code, or must I go down to Win32?

谢谢!

推荐答案

您可以将表单的 MaximizeBox 属性设置为false

You could set the MaximizeBox property of the form to false

这篇关于如何停止双击窗口标题栏以最大化FormBorderStyle.FixedToolWindow的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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