[英]Hide minimize and maximize buttons on form without hide title
How can I hide minimize and maximize (but not the close) buttons on form without hide the form's title and icon too? 如何隐藏表单上的最小化和最大化按钮(而不是关闭按钮)而不隐藏表单的标题和图标? I want to a MessageBox
like style. 我想要一个像样式的MessageBox
。
I've tried and failed with: 我尝试过但失败了:
FormBorderStyle
set as FixedToolWindow
does the job let only the close button but does hide the form's Text
and Icon
. 设置为FixedToolWindow
FormBorderStyle
不会仅允许关闭按钮执行工作,但会隐藏表单的Text
和Icon
。
ControlBox
-> Hide not only minimize and maximize but close and title too. ControlBox
>隐藏不仅最小化和最大化,而且关闭和标题。
只需将MaximizeBox
和MinimizeBox
属性设置为false。
将FormBorderStyle
属性设置为toolwindow
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.