Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

In .net how to mask / hide the maximize box without masking the minimize box?

Posted on 2006-10-24
3
Medium Priority
?
378 Views
Last Modified: 2008-02-01

if we set form.maximizebox = false then the maximize box is disable but still visible.
If both maximizebox and minimizebox are set to false then both are unvisible.


How to hide the maximize box of a form without masking the minimize box?

0
Comment
Question by:mguilhem
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 1000 total points
ID: 17794098
The only way to customize buttons appearance is to provide your own code for title bar area, which takes care about redrawing and handling mouse messages. This task is so difficult that it is better to forget about this and use standard title bar, which doesn't allow to show only two buttons.
0
 
LVL 9

Expert Comment

by:jonorossi
ID: 17795849
This is a deliberate action by Microsoft. The idea if that the right button is close, the second one from the right is maximise and the 3rd from the right is the minimise. It would not be a good idea to change this to make the 2nd from the right the minimise because most users wont look at the icon every time they want to use them, they will just assume they are the same for every program because that is how every other program works.

Is there a reason you don't want the maximise button to show at all?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question