>Would I be moving in the right direction to set KeyPreview of form to .T. and have the KeyPress event call a method to click() the appropriate command button, or is there any easier way ?
>
>Thanks CB !!
Good direction.
I have written a general keypress routine which is part of my general form class. It looks for command buttons with names like cmdF2, cmdF3, cmdShiftF4, etc. In my reservation app I use all of the functions keys F2, ... F9, F11, and F12, both shifted and unshifted. I like this a lot and I believe they users do also though they tend to start off using the mouse mostly.
My design is that you can always use either the mouse or the function key combo.
In your keypress routine you need to check both the key code and shift-ctrl code. Key codes by themselves are ambiguous.
Let me know if you want me to post my keypress method.
Peter Robinson
Peter Robinson ** Rodes Design ** Virginia