Re: [2.0] Sockets question
Are you sending the text or the rtf text?
Re: [2.0] Sockets question
Well, I got the formatted text to show up on your screen when you send the message. But the whole sending messages thing works like this. You send the message to all attached clients, and to yourself. They are two different processes. I got the sending it to yourself working by just doing this:
Code:
txtMessages.AppendText(userName);
txtMessages.SelectedRtf = txtYourMessage.Rtf;
That ONLY shows up on your screen. The SendData with "CHAT|" sends it to all attached clients. However, if I send the text, then it loses it's formatting, if I send the string, it, also loses it's formatting. So, I'll send the .Rtf. However, when I do that, it shows up to all attached clients with no formatting, but it has formatting codes.
The solution to this predicament may be handling the message recieved event and set the selected rtf to their rtf. So, I suppose I would, convert all the rtf codes from the message to the format without codes when the message is recieved. I think I know how to do this. I'll reply with my status in a few.
Re: [2.0] Sockets question
Thats probably because your receiving rtf textbox is being set with the .Text property instead of the .RTF property. ;)
Re: [2.0] Sockets question
Yea, I think I know how to solve this. The user sends the message with all the Rtf codes. Then, when the user recieves it, the SelectedRtf property of the messagelog is set to the rtf codes of the message.
Re: [2.0] Sockets question
Yes, sending and receiving the rtf should produce what you want. :)