Extended Rich Text Box : How to insert page breaks C#.net

Hi experts,
How can I insert page breaks in Extended Rich Text Box (from Microsoft).
IDE C#.net
Some sample code please.

Thanks
SHAHEEN_AKHTARAsked:
Who is Participating?
 
pivarCommented:
Should have said that this replaces the selected text or inserts page break where your cursor is.
0
 
pivarCommented:
Hi,

You can do this

      richTextBox1.SelectedRtf = @"{\rtf1 \par \page}";

/peter

0
 
SHAHEEN_AKHTARAuthor Commented:
Thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.