G
Guest
I have three buttons in the toolbar; Bold, Italic, and Underline. When Bold and Italic are pressed, I want the selection font to be Bold and Italic. I chose this code, but it doesn't work
My Code
if(buttonbold.Pushed == true & buttonitalic.Pushed == true & buttonunderline.Pushed == false
{newfontstyle = FontStyle.Bold & FontStyle.Italic;
In Visual Basic .NET, I would use
newfontstyle = FontStyle.Bold + FontStyle.Itali
But that produces an error in C#. Please help me.
My Code
if(buttonbold.Pushed == true & buttonitalic.Pushed == true & buttonunderline.Pushed == false
{newfontstyle = FontStyle.Bold & FontStyle.Italic;
In Visual Basic .NET, I would use
newfontstyle = FontStyle.Bold + FontStyle.Itali
But that produces an error in C#. Please help me.