Cani I hide the X in controlbox

N

ngr

I have a form which I want to prevent the user from clicking the X in the
right corner of the control to close it.
At the same time I want to retain the minimise and maximise buttons on the
control.

Is there a way of disabling or removing the X button off the title bar
alone.

Thanks in advance.
 
H

Herfried K. Wagner [MVP]

ngr said:
I have a form which I want to prevent the user from clicking the X in the
right corner of the control to close it.
At the same time I want to retain the minimise and maximise buttons on the
control.

Is there a way of disabling or removing the X button off the title bar
alone.

Check out the code samples in this article:

<URL:http://dotnet.mvps.org/dotnet/code/forms/#NoClose>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top