M
Marina
Hi,
Here is the desire behavior, when the user tries to leave a field, that
field is validated. If the value in the field is invalid, the previous
value is restored - however, the user is allowed to go on to the next field
anyway.
It seems that the Validating event has the behavior of keeping the user in
the field if e.Cancel is set to True - and doesn't replace the bad value
with the last good one. Which is all very undesirable! It means the user
can't even close the program until a valid value is entered into the field!
Why would anyone want this behavior?
Is there any built in way to get the functionality I am looking for, or does
it all have to be done manually?
Thanks
Here is the desire behavior, when the user tries to leave a field, that
field is validated. If the value in the field is invalid, the previous
value is restored - however, the user is allowed to go on to the next field
anyway.
It seems that the Validating event has the behavior of keeping the user in
the field if e.Cancel is set to True - and doesn't replace the bad value
with the last good one. Which is all very undesirable! It means the user
can't even close the program until a valid value is entered into the field!
Why would anyone want this behavior?
Is there any built in way to get the functionality I am looking for, or does
it all have to be done manually?
Thanks