|
-
Mar 4th, 2003, 01:17 PM
#1
Thread Starter
Lively Member
Setting focus to end of text in textbox [Resolved]
How can I set the focus to the end of existing text when the focus switches to a multi-line textbox, i.e. the cursor should be at the next line, w/o any highlighted text? Thanks.
Last edited by trutta; Mar 4th, 2003 at 01:31 PM.
-
Mar 4th, 2003, 01:28 PM
#2
Frenzied Member
VB Code:
Private Sub Text2_GotFocus()
Text2.SelStart = Len(Text2.Text)
End Sub
-
Mar 4th, 2003, 01:32 PM
#3
Thread Starter
Lively Member
Thank you, that works great. Between a cold & medicine it's hard to think straight today.
-
Mar 4th, 2003, 01:35 PM
#4
Frenzied Member
Originally posted by trutta
Between a cold & medicine it's hard to think straight today.
What medicine are you taken? Fill better!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|