I found how to make text bold in code:
richTextBox1.Rtf = @"{\rtf1\ansi This is in \b bold\b0.}";
But I also need how to make text italic. Google doesn't give me much.
I tried this (similar to bold, but with different character) but that doesn't work.
richTextBox1.Rtf = @"{\rtf1\ansi This is in \i italic\i0.}";
Can someone help me out please?
this is how I managed to do it:
edit:
How did I do this? I created a small test-application with a richtextbox and a button.
I typed some text in the richtextbox, I selected the text and pressed the button.
This saved the rtf. I opened the rtf in Notepad++. The content of the rtf was
and that's how I found how to use italics in a richtextbox.