The information in this article applies to:
SYMPTOMSThe Validate event of a control is not executed when it loses focus to another control that has its CausesValidation property set to True. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
Microsoft Visual Basic 6.0 introduced a new Boolean property called
CausesValidation on various controls, such as the TextBox. According to
Visual Basic Help, when there is an attempt to put focus on a control that
has its CausesValidation property set to True, the Validate event of the
control that is losing focus executes. During that Validate event, you
can verify that the data entered is valid and you can prevent the shift of
focus to the new control if you want. Steps to Reproduce Behavior
Aside from attempting to use the LostFocus event to manually call a Validate event for Text2 from Text2, you can work around this problem by changing the CausesValidation property from False to True. Additional query words: kbdsd Causes Validation
Keywords : kbActivexEvents kbCtrl kbVBp600bug kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |