Disable Close Button

  • Thread starter Thread starter NuBBeR
  • Start date Start date
N

NuBBeR

Either I need to know how to disable the close button ("x") or handle the
close event on the main form.
 
Handle the Closing event of the form. Set the CancelEventArgs.Cancel
property to control the form-closing.

Either I need to know how to disable the close button ("x") or handle the
close event on the main form.
 

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

Back
Top