Home All Groups Group Topic Archive Search About

Should move to next control with return-key AND tab-key . HHow ?

Author
22 Jun 2006 9:21 AM
Peter Stojkovic
I need a idea how to program the following.


I have a control inherited from textbox.

The differnce should be, that the cursor will move to the next control ,
when the user presses the TAB key or the RETURN key.

How can that be down ??


Thanks
Peter

Author
22 Jun 2006 10:15 AM
Herfried K. Wagner [MVP]
"Peter Stojkovic" <no_spam@gmx.net> schrieb:
> I have a control inherited from textbox.
>
> The differnce should be, that the cursor will move to the next control ,
> when the user presses the TAB key or the RETURN key.

Enter Instead of Tab
<URL:http://blogs.duncanmackenzie.net/duncanma/archive/2004/12/13/936.aspx>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
22 Jun 2006 3:14 PM
Brian Tkatch
Peter Stojkovic wrote:
> I need a idea how to program the following.
>
>
> I have a control inherited from textbox.
>
> The differnce should be, that the cursor will move to the next control ,
> when the user presses the TAB key or the RETURN key.
>
> How can that be down ??
>
>
> Thanks
> Peter

For the TAB key, use tabstops.
For the ENTER key, add a button to the form that tabs to the next
control. Make it the form's Accept button.

B.