>>But i have some key definition in my form KeyPress event.
>>it is an example.
>
>Control's KeyPress fires before form's KeyPress. You can move all your code into form's KeyPress to have better control.
Are you sure? Help says, and it's easy to reproduce, that form event code goes first.
Edward Pikman
Independent Consultant