S
stuart.d.jones
Hi,
I've set up an errorprovider on a form, but I have the following
problem.
I've got a button for the user to cancel the operation, but if there's
an error in any of my textboxes, the cancel button doesn't work, and
the user can't leave the textbox.
Is there any way around this? Presently I'm validating controls in
their OnValidating events, and setting e.cancel = true if there's a
problem, along with using SetError to get the errorprovider to do its
work. In the OnValidated event, I'm clearing the error messages.
The functionality of this is 99% how I want it - I just need the user
to be able to cancel!
Any help greatly appreciated!
Stu
I've set up an errorprovider on a form, but I have the following
problem.
I've got a button for the user to cancel the operation, but if there's
an error in any of my textboxes, the cancel button doesn't work, and
the user can't leave the textbox.
Is there any way around this? Presently I'm validating controls in
their OnValidating events, and setting e.cancel = true if there's a
problem, along with using SetError to get the errorprovider to do its
work. In the OnValidated event, I'm clearing the error messages.
The functionality of this is 99% how I want it - I just need the user
to be able to cancel!
Any help greatly appreciated!
Stu