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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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