RichTextbox.textRTF format problems
Posted on 2005-05-11
If I want to move the contents of richtextbox1 into richtextbox2 and preserve the text and colour format, I can do the following..
EXAMPLE 1 - richtextbox2.TextRTF = RichTextBox1.TextRTF
However, if I do this, then the result is all 'garbage.'
EXAMPLE 2 - richtextbox2.TextRTF = now() & RichTextBox1.TextRTF
I'm working on a private message feature for a chat program for work. Everything is working except that the private message text is coming through in the same format as the second example. I need to prefix the sent message with *PRV* and the UserName name so that the client knows it is a private message....What I am doing is this...
WinPrivate.SendData "*PRV*" & ListOfUsers.List(userindex) & MsgWeAreSending.TextRTF
When the client recieves the private message, all the text has been stripped of it's formatting and the result is garbage. Any ideas what I am doing wrong!?? Thanks