in VB6 I could say Cancel = True when the form was unloading, how can I do that in VB.NET:rolleyes:
Printable View
in VB6 I could say Cancel = True when the form was unloading, how can I do that in VB.NET:rolleyes:
In the forms closing event set e.Cancel = true but obviously within some logic that decides whether to set it to true or not as you will want to close most of the time :)
hehe worked :) tnx
Well you sometimes need to do it:p Like when you want to ask the user to save their work before closing the app you usually put three options "Yes, No, and Cancel". This one is supposed to be for the cancel one:D