I have TabPages, Button and RichTextBox controls on my form. I like to format text and than add to RichTextBox which is placed on TabPage when I click on button.

Button1_Click event

RichTextBox1.Text(“This is my first line which I like to add as font size 24”)

Button2_Click event

RichTextBox1.AppendText(ControlChars.CrLf & “This is my second line which I like to add as font size 12”)

Please help to format text and than add to RichTextBox.

Ajay