Solved

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

Posted on 2006-10-24
3
369 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
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

829 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