Vb validating prevent focus change

LISTING 5.4 USING THE VALIDATE EVENT PROCEDURE Private Sub txt Age_Validate(Cancel As Boolean) If Not Is Numeric(txt Age. NET controls is in the order in which they fire the Lost Focus and Validate events.

vb validating prevent focus change-39vb validating prevent focus change-59

In this chapter, we'll look at two facets of dealing with problems in . First, we'll demonstrate the programming that you can do to handle errors, allowing the user to make corrections when something goes wrong.

In such cases, you can force the controls in the support library to behave more closely to the original VB6 controls by setting the VB6Config.

Focus Event Support static property to True: When this property is True, the support library ensures that the Lost Focus event is always fired after the Validate event.

To learn more about your VB6 applications, run VB6 Analyzer on your source code and send us the generated text file.

You will receive a detailed report about your VB6 applications and how VB Migration Partner can help you to quickly and effectively migrate it to .

Leave a Reply