Hi Marcia
Sorry for replying late.
>This is not a good idea. You would be better off to set the form's KeyPreviewProperty to .T. and write code in the form's KeyPress to handle this.
But won't that slow things down, not that I was aware of the property, thanks for making me aware of it in the first place <g>. The reason I ask is becuase, I will be enabling this in the base class and this functionality is required in every instance of the form class.
>The reason is that OKLs interrupt whatever code happens to be running at the time to do their thing. This may lead to some unexpected behavior.
hmmm. Anyway your code works perfectly, thanks a lot.