Awww, this has got to be so easy but it's driving me nuts due my lack of VB skills!!
I'm working on a kind of messenger program for work. All I need to do is to have the newest messages at the top of the richtext box. Simple eh!! As I'm working with rich text font, and colour formatting, I'm having to use selstart and sel length to add my text, otherwise the formatting is lost.
This is what I'm doing. I've tried adding VBCRLF's but nothing seems to work. Please point out what I'm doing wrong. I've been staring at this screen fo so long, I thing I've gone code blind!!
Dim Data As String
WinSockMessage.GetData Data 'Get our incoming data from our winsock control.....
TextBuffer.TextRTF = Data 'and store it in our TextBuffer textbox
TextBuffer.SelStart = 0
TextBuffer.SelLength = Len(TextBuffer.Text) 'Get the length of the text in the TextBuffer..........
MessageIN.SelStart = 0
MessageIN.SelLength = 0
MessageIN.SelRTF = TextBuffer.SelRTF 'and add it to the start of the MessageIN textbox