I am looking for a way to apply formatting like colors, bold etc to a
label.Text. Is there a way to do it?

Re: way to "markup" label.Text ? by Lloyd

Lloyd
Sat May 21 23:30:07 CDT 2005

what have you against setting the label's font and forecolor (and
backcolor)?
but with standart Label you could set only a style for the whole content (as
opposed to part of it)

<thomasamillergoogle@yahoo.com> wrote in message
news:1116720201.783932.250340@g49g2000cwa.googlegroups.com...
>I am looking for a way to apply formatting like colors, bold etc to a
> label.Text. Is there a way to do it?
>



Re: way to "markup" label.Text ? by Herfried

Herfried
Sun May 22 11:53:57 CDT 2005

<thomasamillergoogle@yahoo.com> schrieb:
>I am looking for a way to apply formatting like colors, bold etc to a
> label.Text. Is there a way to do it?

Use a RichTextBox, remove its border, set the background color to the form's
background color, set the 'Cursor' property to an arrow and use the 'Select'
method and the 'Selection*' ('SelectionColor', 'SelectionFont',
'SelectionCharOffset', ...) properties to change the style of the text.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>