Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VB6 - Setiing the Cursor Focus
Name: stootze29 Date: August 17, 2003 at 09:39:47 Pacific OS: Win XP CPU/Ram: AMD 1.33 512MB
Comment:
Hey Guys,
I'm Writing a data input program using Visual Basic 6.
I wan't to automatically move the cursor to the next text box once the previuos text box is full.
How do you set the position of the cursor?
I know this can be done in Visuall C++, but i'm sure how to do this in VB; I rarely code in this.
Name: Pradipta Date: August 17, 2003 at 23:32:15 Pacific
Reply:
hi, what u have to do is just use 'setfocus'. just count the number of chars in the textbox and when the max number is met set the focus at next tb like this:
private sub text1_keyprss if len(text1.text)=5 then text2.setfocus end sub
0
Response Number 2
Name: stootze29 Date: August 18, 2003 at 21:25:07 Pacific
Summary: I was trying to create some handy button for myself in WORDS. What I need to do: A table with 3 columns are created already. Keeping my cursor at row 1 (any column), when I press this commandbutton "C...
Summary: I asked because if you are behind a router then Windows will not know the IP address, it will only have the LAN address. Windows will only be able to find out the Internet IP address if the modem is ...
Summary: Not to be a jerk, but those suggestions are really bad. Not only do they add to the complexity of the problem, they are not sound programming practices. Anyone here who knows me, knows that I am a VB...