469,927 Members | 1,267 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

going from field to field using ENTER

I would like to make it possible to jump from a field to another field (the
next one in the tab index) using enter also and not only tab. How can this
be done either without onkeydown or with it.

Laszlo Henning
Nov 16 '05 #1
1 1526
Hi Laszlo,

Using the KeyDown event you can use this code to simulate a TAB
each time you press ENTER. Subscribe to this event in all controls
where you want this behavior.

private void KeyDownEvent(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
SendKeys.Send("{TAB}");
}

On Sat, 18 Dec 2004 13:44:34 +0200, Laszlo Henning <la**@mediasoft.ro>
wrote:
I would like to make it possible to jump from a field to another field
(the
next one in the tab index) using enter also and not only tab. How can
this
be done either without onkeydown or with it.

Laszlo Henning


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Mike | last post: by
reply views Thread by Thomas Scheiderich | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.