Presumably you're setting the text of the ErrorProvider
in ValidateLocation
. In that case, you really just don't want to use e.Cancel
here because it was meant to do exactly what it's doing. Keep the control from losing focus.
That would make sense in a scenario where it was an input error.
So, in short, it just doesn't make sense for you to use e.Cancel
here.