N
Nigel V Thomas
Hi, I have what would seem a simple issue but I can't get to the bottom of it.
I have a data entry form shown as a .ShowDialog.
It has two buttons (Accept and Cancel)
Form.CancelButton is set to the Cancel button
Form.AcceptButton is set to the Accept button
All worked fine until I decided to add a dialog to the Cancel button's event
if the data has changed such as.
msgbox("Save changes Yes/No/Cancel",YesNoCancel)
Now, if I trap the Cancel MsgBox result the form still closes. It seems that
the form.CancelButton is closing the form. How can I stop the form from
closing even if I have set the Form.CancelButton?
Cheers
I have a data entry form shown as a .ShowDialog.
It has two buttons (Accept and Cancel)
Form.CancelButton is set to the Cancel button
Form.AcceptButton is set to the Accept button
All worked fine until I decided to add a dialog to the Cancel button's event
if the data has changed such as.
msgbox("Save changes Yes/No/Cancel",YesNoCancel)
Now, if I trap the Cancel MsgBox result the form still closes. It seems that
the form.CancelButton is closing the form. How can I stop the form from
closing even if I have set the Form.CancelButton?
Cheers