Hello all,
I'm at work on a client that features a richtextbox, I need a function that will append a line of RTF code to the end of the current one.
The only way I've found that works is to take a copy of .TextRTF and then cut off the ending ("}" & vbcrlf) and then add my stuff, add the ending and drop it back into .TextRTF.
I fear however, taht when the chatbox becomes very full this operation will take longer, and longer and longer.
So, I figure by my best estimate that I need to use .SelRTF instead, but I've run into a problem with that. When I place the cursor location in the proper area, and then add code it seems to either fail to use code words, or it negates them. For example "\bTest\b0" just doesn't work, nothing simply happens. Its as if the selrtf property was never set. or if i try just "Test\par" to end the current line, It inserts "\\par" which doesn't end the line and shows up as text.
So my question is, Does anyone know of a fast and effecient way to drop a line of formated RTF to the end of a Richtextbox.
I'm at work on a client that features a richtextbox, I need a function that will append a line of RTF code to the end of the current one.
The only way I've found that works is to take a copy of .TextRTF and then cut off the ending ("}" & vbcrlf) and then add my stuff, add the ending and drop it back into .TextRTF.
I fear however, taht when the chatbox becomes very full this operation will take longer, and longer and longer.
So, I figure by my best estimate that I need to use .SelRTF instead, but I've run into a problem with that. When I place the cursor location in the proper area, and then add code it seems to either fail to use code words, or it negates them. For example "\bTest\b0" just doesn't work, nothing simply happens. Its as if the selrtf property was never set. or if i try just "Test\par" to end the current line, It inserts "\\par" which doesn't end the line and shows up as text.
So my question is, Does anyone know of a fast and effecient way to drop a line of formated RTF to the end of a Richtextbox.