Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Setting Cursor to End

Question:
Is there a way to put the cursor at the end of the text in a text box?

I use .SetFocus to put the cursor in a multi-line text box that conatins text and it sits at the start. I would like it to go to the end of the text.

Answer:
Set the .SelLength property of the text box = len(textbox.text). That will move the cursor to the end.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date