By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Multi Font Style at run time

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"BrianDH" <Br*****@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
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.
Nov 20 '05 #2

P: n/a
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:"
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...

"BrianDH" <Br*****@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
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.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.