Link to home
Start Free TrialLog in
Avatar of horn
horn

asked on

Disabling the "X" button

I would like to know how to disable the "X" button in the upper right corner of a Windows application.
I want the user to be able to exit only using the pull-down menu option File->Exit.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VEngineer
VEngineer

If you just simply want to get rid of the 'X' button, you can go into the dialog box properties, styles, and then uncheck "system menu"
This will can the 'X' but it will also can the button in the upper left too.  So all you have is a title bar with the title text.  Menu will still work fine.

I'm not sure which solution you are looking for, but if my solution works, please give me some points.. I am running low.
Horn asked about disabling the button, not getting rid of it entirely. If you need points, you should answer the question that was asked correctly (like I did), not answer a question you made up yourself.

B ekiM
Avatar of horn

ASKER

I am sorry but to be fair, the points have to go to the first one to answer correctly.
Thanks B ekiM.