468,771 Members | 1,435 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

Using the TAB ORDER with ENTER KEY ?

Hi, i use the TAB ORDER to move focus from one control to
another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without
the KEY PRESS method???
Thanks.

Nov 15 '05 #1
2 2418
Thomaz,

What you will have to do is capture the keypress on the form. Then,
when you have that, if the keypress is an enter key, you can set the focus
on the control on the form that you want it to go to (using the
GetNextControl method on the Control class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"thomaz" <su***@nce.ufrj.br> wrote in message
news:05****************************@phx.gbl...
Hi, i use the TAB ORDER to move focus from one control to
another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without
the KEY PRESS method???
Thanks.

Nov 15 '05 #2
Nicholas;

thanks for your replay to my question

I will try to use the GetNextControl method.

Thomaz
-----Original Message-----
Thomaz,

What you will have to do is capture the keypress on the form. Then,when you have that, if the keypress is an enter key, you can set the focuson the control on the form that you want it to go to (using theGetNextControl method on the Control class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"thomaz" <su***@nce.ufrj.br> wrote in message
news:05****************************@phx.gbl...
Hi, i use the TAB ORDER to move focus from one control to another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without the KEY PRESS method???
Thanks.

.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by cameron | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.