Solved

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

Posted on 2004-10-07
1
196 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now