Set Label Font?

S

Shapper

Hello,

I want to set a label text from my vb code. Something like:

MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True

How can I do this?

Thanks,
Miguel
 
S

Siva M

MyLabel.Font.Names = "Verdana, Arial"
MyLabel.Font.Size = 10
MyLabel.Font.Bold = True

Hello,

I want to set a label text from my vb code. Something like:

MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True

How can I do this?

Thanks,
Miguel
 
E

Eliyahu Goldin

MyLabel.CssClass="myLabelStyle"

and define the font properties in myLabelStyle css rule.

Eliyahu
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top