Click to See Complete Forum and Search --> : Backcolor


SecretHell
February 25th, 2000, 11:25 AM
Does anybody know how to change the color af the selected text in a RTFbox ,
not the backcolor of the whole textbox, just the selected text ?
Something like in Word you can use a marker.


Thank you

Johnny101
February 25th, 2000, 12:00 PM
I think there is a SelColor property of the RTB. I've never used it, but I think i remeber seeing it in the object browser.

HTH,
John

John Pirkey
MCSD
www.ShallowWaterSystems.com

SecretHell
February 25th, 2000, 12:38 PM
I know , but that changes the FOREcolor of the selected text.
I wanna change the BACKcolor

Thanx anyway

Chris Eastwood
February 25th, 2000, 03:37 PM
You can't do this with the RTF control that microsoft provide with VB - you can however, download a free RTF control (based on RichEdit2.0) from http://vbaccelerator.com - this supports all the standard RTF stuff like tables, background bitmaps, hyperlinks etc. It also comes with all the source code.


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb

SecretHell
February 25th, 2000, 06:39 PM
thanx