Powered by Blogger.

Sunday, March 2, 2014

Remove maximize button in windows form

In this post we will discuss how we can remove maximize button in windows form in C#.Net.  Maximize button enables users to enlarge a window to full-screen size. Also you can check out my previous posts on:

- SET XACT_ABORT ON in sql server

- Sql Server 2008 joins tutorial

- How to use If else in sql server 2008?

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

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. See below: