Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Till now, I have made a pretty advanced rich text editor. However, is there any possible way with which I can make the Richtextbox multi-paged? ( sort of like Microsoft Word ).

PS: I am using a custom Richtextbox to support printing.


Thanks!

What I have tried:

I tried using panels to white out some spaces at equal distances from each other, but it sort of didn't work.
Posted
Updated 26-May-18 23:11pm
v2
Comments
Patrice T 27-May-18 1:48am    
'but it sort of didn't work.'
Probably a problem in your secret code.
[no name] 27-May-18 2:29am    
It's More of a joke than Code :

Private Sub CreateTB(loc As Integer)
Dim NewTB As New Panel
NewTB = New Panel
NewTB.Name = "tbNew" & loc.ToString
NewTB.Size = New Size(RichTextBox1.Width, 20)
NewTB.Location = New Point(RichTextBox1.Location.X, RichTextBox1.Height * loc)
NewTB.Visible = True
Controls.Add(NewTB)
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim a As Integer = 1
Do Until a = RichTextBox1.Height / 10
CreateTB(a)
a += 1
Loop
End Sub

It was just meant to produce an illusory effect. Even it doesn't work

1 solution

No. The standard RichTextBox control is really very basic - there is no way to "extend" it to multiple pages. It may be that you can find a "better" rich text box - try Telerik and DevExpress, they both have extended RTB's though I haven't tried them.

The other alternative is to write your own code instead of using an off the shelf component, but that's a lot of work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900