Hide minimize and maximize buttons on form without hide title

4.9k views Asked by At

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.

2

There are 2 answers

3
rory.ap On BEST ANSWER

Just set the MaximizeBox and MinimizeBox properties to false.

0
Solomon On

Set the FormBorderStyle property to toolwindow