Solved

How can we disable the close button on the upper right corner of the form?

Posted on 2004-10-07
1
199 Views
Last Modified: 2010-04-15
Hi. I'm developing an application that would need a form to be always visible to the user. My problem is that I can't seem to find a way to enable the minimize and maximize buttons, while disabling the close button on a form. How can I do this?
0
Comment
Question by:Gianz
1 Comment
 
LVL 22

Accepted Solution

by:
cookre earned 50 total points
ID: 12255842
Call GetSystemMenu() to get a handle to the window's system menu, then delete it with a call to DeleteMenu():

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20912744.html
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

Suggested Solutions

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 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