Coder's Guild Mailing List

Rich Text Box - Visual Basic

Posted by John Lenz on 2000-04-03

I am recieving text from a winsocket control in rich
text format and am trying to display it in a Rich Text
Box. I am having problems because code like this does
not work.
rtb.SelLength = 0
rtb.SelStart = Len(rtb.Text)
rtb.SelRTF = "\cf2 Text"
The result of the code is that \cf2 Text is printed to
the Rich Text Box. The actual rich text code apended
is \\cf2 Text which results in \cf2 Text being
displayed. How do I get the Rich Text Box to
understand control words? Any help would be
appriceated.


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.