Mar 3, 2006 #1 BobBob10 Programmer Joined Apr 24, 2005 Messages 57 Location 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?
How do I make a label bold at run time? Can't seem to do it, is it because the property is read only?
Mar 3, 2006 #2 earthandfire Programmer Joined Mar 14, 2005 Messages 2,924 Location GB You need to create your own font object and set it as the font property for the label. Hope this helps. Upvote 0 Downvote
You need to create your own font object and set it as the font property for the label. Hope this helps.
Mar 3, 2006 #3 SqueakinSweep Programmer Joined Jun 20, 2002 Messages 945 Location GB 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 Upvote 0 Downvote
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
Mar 3, 2006 Thread starter #4 BobBob10 Programmer Joined Apr 24, 2005 Messages 57 Location GB worked a treat. Why in .net do you have to set a new font. Font isn't an object it's a property!? Upvote 0 Downvote
Mar 3, 2006 #5 earthandfire Programmer Joined Mar 14, 2005 Messages 2,924 Location GB A property can be an object and in this case it is. Hope this helps. Upvote 0 Downvote