Font Bold

L

Lou

Why is font bold a read only property.
I create a new label control and want to set the font properties.
How do I set the font properties of a newly created label control?

lbl = New Label

lbl.Font.Bold=True
 
H

Herfried K. Wagner [MVP]

Lou said:
Why is font bold a read only property.
I create a new label control and want to set the font properties.
How do I set the font properties of a newly created label control?

lbl = New Label

lbl.Font.Bold=True

\\\
lbl.Font = New Font(lbl.Font, FontStyle.Bold)
///
 
S

Samuel

I don't know why

It is something we got used to and the way that I know of is to set the font
to a new font like: Label1.Font= New Font(...)

hth,
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top