Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bold Issue

Status
Not open for further replies.

BobBob10

Programmer
Apr 24, 2005
57
GB
How do I make a label bold at run time?

Can't seem to do it, is it because the property is read only?
 
You need to create your own font object and set it as the font property for the label.


Hope this helps.

[vampire][bat]
 
You can do this.
Code:
Label4.Font = New Font(Label4.Font, FontStyle.Bold)


Sweep
...if it works, you know the rest..
Always remember that Google is your friend

curse.gif
 
worked a treat.

Why in .net do you have to set a new font. Font isn't an object it's a property!?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top