dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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.

 

 

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