G
Guest
Hi,
I have a richtextbox which I have modifyed to enable scrolling (ie text gets
added to the bottom and gets scrolled upwards when new text is added). I
have also modifed so that cirtan text can be a different color using the
SelectedStart, SelectedLength and SelectedColor properties.
This is all working fine.
Now
I want to limit the amount of text which ends up in the display so I'm using
the string.Remove function to remove text from the begining of the text.
However in doing an kind of operation to remove text all formating is lost
on my current text.
This sucks!!!
So
I tryed implimenting a solution which stores the formating applied to the
text. This is very slow and also sucks.
Basically I need a better way of
a: removing text from the text box without loosing formating
b: a way of capturing previously formated text and reappling it to new text
c: appling my own method of storing formating to text
Thanks
I have a richtextbox which I have modifyed to enable scrolling (ie text gets
added to the bottom and gets scrolled upwards when new text is added). I
have also modifed so that cirtan text can be a different color using the
SelectedStart, SelectedLength and SelectedColor properties.
This is all working fine.
Now
I want to limit the amount of text which ends up in the display so I'm using
the string.Remove function to remove text from the begining of the text.
However in doing an kind of operation to remove text all formating is lost
on my current text.
This sucks!!!
So
I tryed implimenting a solution which stores the formating applied to the
text. This is very slow and also sucks.
Basically I need a better way of
a: removing text from the text box without loosing formating
b: a way of capturing previously formated text and reappling it to new text
c: appling my own method of storing formating to text
Thanks