I have a WinForm application with several input controls on a form. In the validation event handler (either Validating
or Validated
), I need to det
This thread is old, but I have a couple of thoughts:
Every control has a Tag property. What about giving the control you want have focus a unique Tag value, and then create a method that will iterate through the controls to find that control? Then you can set focus to it.
Instead of using the Validating event, why not use Leaving instead? Doesn't seem to have the same quirks.