Jack Jack - 1 month ago 12
C# Question

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.

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
.

ControlBox
-> Hide not only minimize and maximize but close and title too.

Answer

Just set the MaximizeBox and MinimizeBox properties to false.