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

Highlighting Text

Question:
Is there an API function that will highlight a word in a textbox the way the find command does without using the clipboard?

Answer:
Set the SelStart property of the text box = character index you want to start at, and then set the SelLength property equal to the length of the string you want to highlight. That will highlight the text that is in the box.

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