Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2463
  • Last Modified:

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
0
SHAHEEN_AKHTAR
Asked:
SHAHEEN_AKHTAR
  • 2
1 Solution
 
pivarCommented:
Hi,

You can do this

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

/peter

0
 
pivarCommented:
Should have said that this replaces the selected text or inserts page break where your cursor is.
0
 
SHAHEEN_AKHTARAuthor Commented:
Thanks a lot
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now