P
Patrick Kristiansen
Hi!
When setting e.Cancel = true in a forms Closing event, you can prevent
the form being closed. I did so, but on my form I have a button with
DialogResult set to Abort, but the form doesn't close now that I've set
Cancel to true.
How can I work around this so that you cannot close the form by using
Alt-F4 but still allow the controls to call the Close method of the form?
Thanks in advance,
Patrick
When setting e.Cancel = true in a forms Closing event, you can prevent
the form being closed. I did so, but on my form I have a button with
DialogResult set to Abort, but the form doesn't close now that I've set
Cancel to true.
How can I work around this so that you cannot close the form by using
Alt-F4 but still allow the controls to call the Close method of the form?
Thanks in advance,
Patrick