Disable or Hide minimize maximize and close buttons in C#.net windows form

In this C#.Net tutorial, we will discuss how to hide maximize, minimize button in windows forms application in C#.Net. We will also see how we can hide or remove both maximize, minimize button in C#.net windows forms application.

Hide or Disable maximize button in windows forms application in C#.Net

Now we will see how we to remove or hide maximize button in windows forms in C#.Net. Maximize button enables users to enlarge a window to full-screen size.

To remove maximize button we have to set the MaximizeBox property to false of the windows form.

hide maximize button in windows form c#
hide maximize button in windows form c#

Now when you open the windows form you will notice the windows form’s maximize button is in disable mode as well as if user double-click on the title bar it will not maximize the windows form.

disable maximize button in windows form c#.net
disable maximize button in windows form c#.net

Hide or Disable minimize button in windows forms application in C#.Net

Now, we will discuss how we to remove or hide minimize button in windows form in C#.Net. Minimize button enables users to minimize the window to the taskbar.

To remove minimize button we have to set the MinimizeBox property to false of the windows form.

how to disable minimize and maximize button window forms in c#
how to disable minimize and maximize button window forms in c#

Now when you open the windows form you will notice the windows form’s minimize button is in disable mode in the windows form. User can not able to minimize the windows form.

how to disable minimize button window forms in c#.net
how to disable minimize button window forms in c#.net

Hide or Disable minimize maximize and close buttons in c# windows form

Now, we will see how to hide the maximize, minimize and the close button in windows form in C#.Net.

To remove all the buttons, Right click on the Form and Click on Properties. And from the properties windows, Set Control Box property to False as shown in the fig below:

disable minimize maximize and close buttons windows forms
disable minimize maximize and close buttons windows forms

Now if you run the Windows form you will not able to see the maximize, minimize, and the close button from the windows form.

disable minimize maximize and close buttons in c# windows form
disable minimize maximize and close buttonsin c# windows form

You may like the following C#.Net tutorials:

Hope this windows forms tutorial explains, how to disable maximize button in windows form c#.net, disable minimize button in windows form c#.net, disable minimize maximize and close buttons in c# windows form.