Text formats

kjellsor

Newcomer
Joined
Nov 22, 2004
Messages
11
I dont know if this is the right thread but my quiestion is this:

can i underline a spesific word in a label using code?
 
One way you can do it is by using ampersands (&) similiarily to how you would use them in a file menu item to underline a letter to denote a hot key.

set the text of you label to "hello you &c&r&a&z&y."
and you should get "hello you crazy." as the text of the label.
 
Sorry kjellsor...should have read your requirement more carefully. You could break the label into a few subsequent labels and set the appropriate label.Font.Underlined = true. However, this would only really be feasible if the text in the label were to be fixed.

RobEmDee said:
label.Font.Underline = true;
 
Back
Top