Powered by Blogger.

Sunday, March 2, 2014

Hide all buttons in windows forms in C#.Net



In this post we will discuss how we can hide the maxmize, minimize and the close button in a windows form in C#.Net. Also you can check out my previous posts on:

- Get version in sql server 2008

- Various Date Formats in SQL server 2008

- Add Primary Key Constraint to existing table in sql server 2008

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.




0 comments

Post a Comment