L
Looch
All,
I have a form that has a text box and button - when the button is
pressed the form will close if the correct text is in the text box -
works fine.
However, if the text box is blank I can't reboot a Windows PC which I
want to allow (if I enter the correct text it will reboot). Is there
anything I can check in the form's OnClosing method to see if Windows
is trying to close the form as opposed to a user closing the form?
Thanks in advance
I have a form that has a text box and button - when the button is
pressed the form will close if the correct text is in the text box -
works fine.
However, if the text box is blank I can't reboot a Windows PC which I
want to allow (if I enter the correct text it will reboot). Is there
anything I can check in the form's OnClosing method to see if Windows
is trying to close the form as opposed to a user closing the form?
Thanks in advance