RichTextBox formating problems

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
 
G

Guest

I realized that I wrote appling in stead of applying it's been a harder day
then I thought.

Also while I'm at it (posting and all).
I'm trying to convert a byte array thats been sent via network to a string /
char array. Does any one know a way of accessing the converter that maps
numbers with characters? surly there must be a way and I just can't find it.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top