
Make Enter key default move to next field?
I hope you are using the method you describe by setting the KeyPreview
property of the Form to True and placing your code in the Form_KeyPress
event. To automate this for all forms, create an empty form with only this
property and event procedure coded, then place it in the Templates folder
(where the VB executable is located). Then, every time you add a form,
choose this one from the Templates (instead of the usual Form). You never
have to do it again.
Now, why would anyone want to do it?
Quote:
> Greetings,
> I'm just checking if there is a simpler way to make the enter key move to
the
> next field than just using the KeyPress event - if KeyAscii = Chr(13) then
> nextfld.movenext (I'm tired of re-reinventing the wheel - got a history of
that
> :-).
> Rich