Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting text in a textbox or richtextbox

Status
Not open for further replies.

josan

Programmer
Mar 25, 2002
11
ES
Hi everyone!

Im trying to write a simple texteditor (like notepad) but ive got a little problem: i dont know how to make that a portion of text in a textbox or richtextbox be "iluminated" (dont know if this word exists in english, sorry). I mean, have you seen the blue backcolor that gets the text when you select it with the mouse (or when notepad finds the text you're searching for), how can i make my text get iluminated in that way?

Ive tried to make:

tb.select(2,5);

but the color of the text isnt changed.

I would appreciate any help anybody could send me.

Please, send your responses to josanguapo@hotmail.com

Thanks for your time.
José Antonio.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top