You're welcome. :)
>Thanks ONCE AGAIN Sergey, :o)
>
>I decided to check for the activecontrol in the form's keypress and take whatever action (or none) as required.
>
>Tracy
>
>>>I have a grid on a formclass and some other shapes and controls. The form initiates an action everytime the user presses a key based on the form's keypress event. I have a separate textbox I want to add to the form class though and it is the only control on the form that when the user enters a value, I do not want the form keypress to occur. Is there anyway to prevent the form's keypress event from ocurring on
one control of the form only?
>>>
>>
>>Hi Tracy,
>>
>>A couple of ideas:
>>- Set forms KeyPreview = .F. in textbox GotFocus and back in LostFocus
>>- In forms KeyPress check active control and do nothing if it's this particular textbox
--sb--