TC,
Why not make it a particular subclass of your textbox and use it whenever the need arises? =)
Dennis
>This turned out to not be an option :( It would have to go in every textbox of every form (many are from base classes so those could be done there) but there are a lot of forms that do not have all of their controls derived from a custom baseclass and it would have to be done fore every new form as well. This issue happens if any form is opened and the timer fires on my form while the user is typing in any control.
>
>
>>Hi TC,
>>
>>The timer will still fire of course. But the NODEFAULT I suggested in the LostFocus of the textbox will not allow the textbox to lose focus.
>>
>>Make sure though, that you check on whether the Timer caused it (hence, I put the "IF llTimerFired" condition), then issue a NODEFAULT.
>>
>>
>>>>TC,
>>>>
>>>>Hi, how about putting a NODEFAULT in the LostFocus event of that textbox?
>>>>
>>>>
>>>>IF llTimerFired
>>>> llTimerFired = .F.
>>>> NODEFAULT
>>>>ENDIF
>>>>
>>>>
>>>>HTH,
>>>>Dennis
>>>
>>>thanks I'll try it and see if the timer still fires...
>>
>>Dennis