Computing.Net > Forums > Programming > VB6 - Setiing the Cursor Focus

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

Reply to Message Icon

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.

THanks,
Stootze



Sponsored Link
Ads by Google

Response Number 1
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
Reply:

Perfect,

Thank you

Stootze


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How to for a web pages &a... Autorun menu exe



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6 - Setiing the Cursor Focus

Focus on Word Table and time-stamp www.computing.net/answers/programming/focus-on-word-table-and-timestamp/13037.html

VB6 and the Internet www.computing.net/answers/programming/vb6-and-the-internet/13030.html

VB6 MouseMove www.computing.net/answers/programming/vb6-mousemove/12241.html