Click here to Skip to main content
12,700,567 members (32,261 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
I need to create a create(X) option without any minimize or maximize options for my windows form application. I am trying to create a setup file and hence I require this.I put my control box property to false but the rest of the coding I don't know. Any help??
Posted 25-Feb-13 19:14pm
Not clear what do you mean by " minimize or maximize options"? Do you want to exclude minimize/maximize/restore capabilities? It's easy, just look at the form MSDN help page. Or do you want to exclude non-client form area? Or what?
Nibu Kurian 26-Feb-13 0:32am
yea exactly . I want to exclude the restore and minimize/maximize option and have just the close capability . I checked the msdn help but couldn't find anything specific.Just like what you see when you run a setup file(.exe)
Look at Solution 1. Even though it is formulated in a sloppy manner, this is what you can do. If you did not get it, you are welcome to ask a question.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

set the minimizebox and maximizebox property of the form to false
the controlbox property to true
now the x(closebutton) is the only one left

hope it help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100