For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > April 2005 > Enter key work like a Tab key









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Enter key work like a Tab key
Ricky

2005-04-06, 12:46 pm

Is there a way to make the "Enter" key work like a "Tab" key for certain
fields? I have few numeric fields which the user will be typing numbers in
using the keypad. What my client wants is that when they hit "Enter" after
typing in a value, the cursor moves to next field.

Please help

Thanks
Michael Cole

2005-04-06, 12:46 pm

Ricky wrote:
> Is there a way to make the "Enter" key work like a "Tab" key for
> certain fields? I have few numeric fields which the user will be
> typing numbers in using the keypad. What my client wants is that when
> they hit "Enter" after typing in a value, the cursor moves to next
> field.


Catch it in the KeyPress event.

Note that you cannot have any Command Buttons with Default = True.

--
Regards,

Michael Cole


Ricky

2005-04-06, 12:46 pm

Thanks....it works!! =)

"Michael Cole" wrote:

> Ricky wrote:
>
> Catch it in the KeyPress event.
>
> Note that you cannot have any Command Buttons with Default = True.
>
> --
> Regards,
>
> Michael Cole
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com