Multi Font Style at run time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

At run-time I need to set the properties of a label based on a value.

I am doing ok except I need the font style to be Bold & Underlined. All examples and all attemps will only let me set one style.

Examples or help?

BrainDH
 
At run-time I need to set the properties of a label based on a value.

I am doing ok except I need the font style to be Bold & Underlined. All
examples and all attemps will only let me set one style.

Examples or help?

Combine the multiple styles with Or.
 
TY!!
Me.lblPeriod.Font = New Font("Verdana", 8.5, FontStyle.Bold Or
FontStyle.Underline, GraphicsUnit.Point)

Me.lblPeriod.ForeColor = System.Drawing.Color.Black

lblPeriod.Text = "Delivery:"
 

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