|
-
Nov 14th, 2005, 06:14 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] How to make a font bold and italic ?
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|