Change background color of a selected line in a textbox

  • Thread starter Thread starter Silvester
  • Start date Start date
S

Silvester

Hi,

I have a textbox on my A2K form that is linked to a db memo field.

I need to find the occurance of words, eg: "Begin:" and highlight that
entire line with a backcolor.

Please can someone help me with the coding required ?

Thanks in advance.
 
Unless you're using an RTF control (such as what Stephen Lebans has at
http://www.lebans.com/richtext.htm), I don't believe it's possible.

If you do use an RTF control, you'd have to read through the text, select a
section you want to colour and use the SelBackColor method of the control.
 
Sometimes it helps so much when someone knows enough to just say "IT CANT BE
DONE"

And for saving me from wasting my time and for pointing me to the perfect
solution...

THANK YOU
 
Back
Top