Text in a Label

  • Thread starter Thread starter Neville Lang
  • Start date Start date
N

Neville Lang

Hi all,

Just wondering if it is possible to Bold some text that I write to a Text
property of a label? Are there any codes that might be used in the text
itself to indicate that the following string are to be bolded, like HTML or
Word? An associated question is whether something like this is also possible
with changing colour on some parts of the text. I do know that in the
designer, you can nominate the font and colour of the text, but that is for
all of the text, not part of the text. Currently using C#.

Regards,
Neville Lang
 
Standard Label control doesn't support this feature.
You may search for 3rd Party controls, or try Image control to show
more beautiful text.

Jan Yeh
 
As an alternative to labels, you could override the OnPaint event and draw
the text directly on the form. This way you could use whatever fonts/colors
you want.

- Mark
 
Jan and Mark,

Thank you for your tips and confirming that text style and colors cannot be
done for individual groups of words within a Text property of CF controls. I
will take a look at your alternate ideas.

Regards,
Neville Lang
 
Back
Top