Vb net lostfocus validating
The Got Focus/Lost Focus technique just discussed in this section is therefore no longer necessary or recommended.
The technique discussed in this section is no longer recommended with VB6.
Here we outline the technique without going into details of implementation.
If the above seems less than robust or overly complex to you, you are not alone in your opinion.
In the release of VB6, Microsoft heeded the desires of many VB programmers and provided the Validate event and the property (see the previous sections in this chapter) to put a stop to control validation madness.
To handle this problem of the dueling Lost Focus event procedures, it was necessary to put a global flag variable in the application that would be set during a Lost Focus event procedure's validation.
In that way, other controls' validation code could check this flag and would not run if another control's validation were already pending.