Displaying italicized text on a dialog
C#
3
Posts
2
Posters
0
Views
1
Watching
-
How can I do this? I assume italicizing one word in the middle of a sentence is beyond the capabilities of a label object, but haven't been able to find a way to do it using a (crippled) richtextbox either.
First use the
SelectionStart
andSelectionLength
properties of the control to select the part of the text you want to italicise, the go with this:[RichTextBox].SelectionFont =
new System.Drawing.Font(
[RichTextBox].SelectionFont,
FontStyle.Italic);Hope it helps.
-
First use the
SelectionStart
andSelectionLength
properties of the control to select the part of the text you want to italicise, the go with this:[RichTextBox].SelectionFont =
new System.Drawing.Font(
[RichTextBox].SelectionFont,
FontStyle.Italic);Hope it helps.