473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Jump to next textbox upon character entering

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
4 3217
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark | last post by:
How can I turn the selection highlight off when I enter a textbox? I tried setting SelLength to 0 but it still selected 1 character. Can I change the color of the selection highlight? I want to...
6
by: Alex Bink | last post by:
Hi, I have a validating event on a textbox in which I want to prevent the user to leave the textbox without entering the right data. Only if he clicks on another specific control he is allowed...
1
by: Xero | last post by:
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? I'd like to write this in...
8
by: Shawn | last post by:
I have an application that will use barcode scanners to enter an ID to search a database. The main form uses a tab page. I would like people to go to the tab for checking in and just read the...
1
by: alex23 | last post by:
Hey everyone, I've just started looking at Wax and have hit a problem I can't explain. I want an app to respond to every character input into a TextBox. Here's a simple, working example: ...
10
by: garyusenet | last post by:
I have a multiline textbox. The size of the text box should be 75 characters wide, and 5 lines in height like this: - <---75 characters--> <---75 characters--> <---75 characters--> <---75...
6
by: robintwos | last post by:
Hi I would like to validate the while entering the data in a textbox for numeric values. it means . i would like to throw an error message when the user enters a character value. validation...
5
balabaster
by: balabaster | last post by:
How do you programmatically shift focus to the next tab stop? i.e. I have a bunch of textboxes that all have their tab orders set in sequence. The user hits enter as they finish entering data in any...
7
by: satyabhaskar | last post by:
hi all, In my web page i have 3 text boxes and one submit button...Actually my problem is how do i focus on 2nd text box upon (pressing enter key)carriage return press in the first text box...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.