How can I change the background of a block of text in RichEditBox Control, just the background of the text and not the entire background of the control?
Chriztholeupithecus Abharroniuz
Printable View
How can I change the background of a block of text in RichEditBox Control, just the background of the text and not the entire background of the control?
Chriztholeupithecus Abharroniuz
You can use the SelColor property to change the color of the selected text.
Rich.SelColor = RGB(0, 255, 0)
I appreciate the help....but Selcolor(RGB) changes only the forecolor
of the text.....What I want to change is the background....thx!!!
Chriztholeupithecus Abharroniuz
send a message of EM_SETCHARFORMAT to it,
lparam = a pointer to a CHARFORMAT2 structure.
I have a problem as yours.
I must use .SelRTF and .TextRTF property and then insert "\Highlightn" and "\highlight0" keyword before and after text you want to highlight.
If you interested in this way, I can send source code to you.