If you need to know when the text box is active then you can do:
txt.TextBox = Object.TextBox( thistextbox )
if txt\Active = true
;Active
else
;Not active
endif
txt.TextBox = Object.TextBox( thistextbox )
if txt\Active = true
;Active
else
;Not active
endif