Article ID: 191912
Article Last Modified on 8/7/2007
Private Sub Text1_LostFocus()
Debug.Print "text1 lostfocus"
End Sub
Private Sub Text1_Validate(Cancel As Boolean)
Debug.Print "text1 validate"
End Sub
Private Sub Text2_LostFocus()
Debug.Print "text2 lostfocus"
End Sub
Private Sub Text2_Validate(Cancel As Boolean)
Debug.Print "text2 validate"
End Sub
Private Sub UserControl_ExitFocus()
' The On Error is needed because if the Validate returns a
' False then you will receive error 380 on the ValidateControls.
' To cause the Validate event to fire when you move the focus
' from the constituent control to a control on the form, uncomment
' the following two lines:
'On Error Resume Next
'ValidateControls
End Sub
Private Sub UserControl_Initialize()
UserControl.BackColor = RGB(0, 0, 255)
End Sub
Private Sub Text1_LostFocus()
Debug.Print "form1 text1 lost focus"
End Sub
Private Sub Text1_Validate(Cancel As Boolean)
Debug.Print "form1 text1 validate"
End Sub
Private Sub UserControl11_LostFocus()
ValidateControls
End Sub
Keywords: kbbug kbctrlcreate kbfix kbvs600sp5fix KB191912