• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

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

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
Gianz
Asked:
Gianz
1 Solution
 
cookreCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now