Hi, I have a Windows Form in VB 2005, which contains several labels that provide the User with dynamic information at runtime. I would like to change part of the text when I apply my data to the label at runtime. For example, if the label provides the User with the name of a specific client, I would like to change the client's name to the color RED.
So, if my label is coded as shown below:
lblClientName.Text = "The name of the client is: Sally Smith"
I would like to change 'Sally Smith' to the color RED. Not the entire label, just the name part.
How would I be able to do that programmatically?
Thanks,
Fulano
Start Free Trial