I'm writing a little word processor app in VS2005 as a bit of an exercise.

The problem I'm having is with setting font styles for selected text, I'm using a RichTextBox and I have both 'Bold' and 'Italic' buttons on the toolbar, if I select some text and click 'Bold', the selected text alters state i.e if it's already bold it becomes regular and visa versa, the same goes for the 'Italic' button.

The thing I cant figure out is how to make the text both bold and italic, say I select some text that is already bold 'TEST TEXT ' and I click the italic button, it changes to 'TEST TEXT '. I cant see a FontStyle of .BoldItalic so I'm pretty stumped

Is there an easy way of doing this ?