简体   繁体   English

隐藏表单上的最小化和最大化按钮,不隐藏标题

[英]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不会仅允许关闭按钮执行工作,但会隐藏表单的TextIcon

ControlBox -> Hide not only minimize and maximize but close and title too. ControlBox >隐藏不仅最小化和最大化,而且关闭和标题。

只需将MaximizeBoxMinimizeBox属性设置为false。

FormBorderStyle属性设置为toolwindow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 隐藏最小化,最大化,关闭窗口中的按钮并显示图标 - Hide minimize, maximize, close buttons from a window and show the icon 绘制或隐藏控制框以实现无边界形式,同时最大化和最小化 - Paint or Hide Control Box for Borderless Form while maximize and minimize 如何在c#中禁用或隐藏其他应用程序中的最小化/最大化按钮? - how to disable or hide minimize/maximize buttons in other application from c#? c#最大化,最小化和关闭表单上的按钮 - c# Maximize, Minimize and Close buttons on form c# 表单最小化/最大化按钮不见了? - c# Form Minimize/Maximize Buttons gone? 在表单加载时最小化和隐藏Winform - Minimize and Hide Winform on Form Load 如何在uwp项目中隐藏最小化和最大化但保持关闭? - How to hide minimize and maximize in uwp project but to keep close botton? SetWindowsHookEx,然后单击冻结表单上的最小化/最大化/关闭按钮 - SetWindowsHookEx and clicking minimize/maximize/close buttons on form freezing 打开菜单时,单击一次时Windows标题栏的“最小化”,“最大化”和“关闭”按钮不起作用 - Minimize, Maximize and close buttons of Windows title bar does not work on single click when Menu is open 隐藏顶部表单栏上的按钮 - Hide buttons on top form bar
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM