Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


only minimize button

Posted on 2003-03-23
Medium Priority
Last Modified: 2008-01-16
Is there a way to have only a minimize button in a C# application, without the close button?

Question by:camtest

Accepted Solution

Nebulus_ earned 60 total points
ID: 8193549
I don't know to be a standard way to do this but you can disable close button like this:

private void MainForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) {
  e.Cancel = true;

or you can set FormBorderStyle to FormBorderStyle.None and to draw your titlebar and borders what you need.
LVL 14

Expert Comment

ID: 8198375
No, Windows does not support this combination. What you can have are grayed out (inactive) maximize and close buttons.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue 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 summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses

580 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