views:

235

answers:

2

hi all

is it possible at all to somehow make the label contorl multicolored? i have a rich textbox that the user enters text into, and if they change the font for some words in the rtf, and changes colors, and underlines one or more words here and there etc, i need to be able to display the resulting text, with the correct styles set by the user inside a label control.

anyone have any suggestions/advice/links?

lots of thanks

jase

+1  A: 

I think it might be easier to just use RichTextBoxes for your labels. Make them readonly and borderless.

This link may help you to make the background transparent.

Philip Wallace
thanks for the tip. is there w\an easy way that you know of to make the standard rtf's backcolor transparent?
baeltazor
Just make it the same as its parent form/panel... smoke and mirrors!
Philip Wallace
is it possible to check to see what control is "under" the rtf? because my users will be dragging the rtf around the page, so no matter what's benieth it - it needs to be transparent all the time?
baeltazor
Take a look at this:http://www.codeproject.com/KB/edit/TransparentTextBox.aspx
Philip Wallace
+1  A: 

Does this help http://www.codeproject.com/KB/vb/rtflabelcp.aspx?msg=2062925 ?

Sorin Comanescu
thank you for that link - i'm downloading it now [just finished downloading] and am going to check it out now.
baeltazor