Search code examples
vb.netlabelbold

How to make a part of a label bold


I want to make bold just the "name" in the string, how to do it?

Dim name As String = Environment.UserName
LabelWelcome.Text = "Welcome " + name + ", ...!"

Solution

  • I don't believe this is do-able on default labels since there is no style formatting.

    I suggest to use 2 labels or a rich text box control.