Set Label Font?

  • Thread starter Thread starter Shapper
  • Start date Start date
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
 
lblName.Attributes.Add("Style","font-face: Arial;font-size:
10pt;font-weight:bold;")
 
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
 
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

Back
Top