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.
SharePoint 2016 Tutorial Contents
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 following C#.Net tutorials:
- Open windows form as modal dialog box in C#.Net
- C#.Net WindowsForm interview questions and answers
- Delegates in C#.Net
- Method Overloading and Method overriding C#.Net
- How to place C#.Net windows application to System Tray?
- Retrieve browser details using C#.Net
- Exception Class in C#.Net
- Add user to a group in active directory using C#.Net
- Singleton class in C#.Net
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.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.