HI! Can anyone help me. I'm not sure is it the right name to call Click or KeyDown as an actions but in any case I have trouble with control which have two action in my code
The control is an TextBox named Text1 (there are several TextBoxes as an Text1 array) and the actions are GotFocus and LostFocus. Ok, if I put a code:
Private Sub Text1_GotFocus(index as Integer)
GetIndex = Text1(Index).Index
End Sub
Private Sub Text1_LostFocus(index as Integer)
Function1
Function2
End Sub
the problem occurs in run time when I move with mouse between the TextBoxes. The program reads the code only from the Private Sub Text1_LostFocus, not from the both actions. If I leave only the GotFocus action in code everything works fine. Why is that you cannot use two or more different actions for same control in your code or is there a something I did wrong?


Reply With Quote