How do I combine fontstyle.bold with fontstyle.Italic? I tried simply adding them together but no go.
Evidently font styles are not constants.Code:Dim MyFont as New Font ("courier new",12,FontStyle.Bold + FontStyle.Italic)
Printable View
How do I combine fontstyle.bold with fontstyle.Italic? I tried simply adding them together but no go.
Evidently font styles are not constants.Code:Dim MyFont as New Font ("courier new",12,FontStyle.Bold + FontStyle.Italic)
You want the bitwise Or operator. Just replace the + with "Or".
Great! Thanks.
I've always found that counter intuitive... I want it Bold AND Italic... not Bold OR Italic... I get why it is the way it is... I'm just saying... it just seems counter intuitive.
-tg