By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Jump to next textbox upon character entering

P: n/a
Hello. I am using vb.net.

I have a series of textboxes and each of them can contain one letter only.
How can I get the cursor jump to the next textbox after one has been filled
with a letter? Thanks.

--
Xero

http://www.chezjeff.net
My personal web portal
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
First of all set the MaxLength property to 1

Secondly, if you want to move to the next control after one character is
changed, then you can use
SendKeys.SendWait("{TAB}")

HTH


--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )> wrote in message
news:7A**********************************@microsof t.com...
Hello. I am using vb.net.

I have a series of textboxes and each of them can contain one letter only.
How can I get the cursor jump to the next textbox after one has been
filled
with a letter? Thanks.

--
Xero

http://www.chezjeff.net
My personal web portal

Nov 21 '05 #2

P: n/a
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb:
Secondly, if you want to move to the next control after one character is
changed, then you can use
SendKeys.SendWait("{TAB}")


.... or:

\\\
Me.GetNextControl(Me.ActiveControl, ...).Focus()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3

P: n/a
For some reason, I can never remember that method name, so I ( badly ) end
up resorting to sendkeys which is out of date really.
--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OP**************@TK2MSFTNGP15.phx.gbl...
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb:
Secondly, if you want to move to the next control after one character is
changed, then you can use
SendKeys.SendWait("{TAB}")


... or:

\\\
Me.GetNextControl(Me.ActiveControl, ...).Focus()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

P: n/a
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb:
For some reason, I can never remember that method name,
so I ( badly ) end up resorting to sendkeys which is out of date really.


I agree that 'SendKeys' is more "RAD" ;-))).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.