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.
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.
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.
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.
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.
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:
Now if you run the windows form you will not able to see the maximize, minimize and the close button from the windows form.
You may like the following C#.Net tutorials:
- How to create a GUID in C#.Net
- Generate One Time Password (OTP) in Asp.Net using C#.Net
- How to create a SOAP API request with Username Token in .Net
- How to create a folder if not exist in C#.Net
- Create a console application in visual studio code
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.
After working for more than 15 years in Microsoft technologies like SharePoint, Office 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Out audiences are from the United States, Canada, United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a SharePoint MVP(8 times), check out My MVP Profile. I have also worked in companies like HP, TCS, KPIT, etc.