Hello,
I have this problem with a richtextbox, wich I use to create a chat client control in VB6.0. I want to add colors wich are included in the incoming data stream. But everytime a colored text is added, it loses his color property when the next text (=sentence, word or even character) is added. So the only color at any time is the last added text.
Anyone has any idea why?
...
richtextbox.text = textbox.text & tt
richtextbox.SelStart = Len(richtextbox.text) - Len(tt)
richtextbox.SelLength = Len(tt)
If forecolor < 15 Then
textbox.SelColor = QBColor(forecolor)
End If
Many thanks,
driesm
I have this problem with a richtextbox, wich I use to create a chat client control in VB6.0. I want to add colors wich are included in the incoming data stream. But everytime a colored text is added, it loses his color property when the next text (=sentence, word or even character) is added. So the only color at any time is the last added text.
Anyone has any idea why?
...
richtextbox.text = textbox.text & tt
richtextbox.SelStart = Len(richtextbox.text) - Len(tt)
richtextbox.SelLength = Len(tt)
If forecolor < 15 Then
textbox.SelColor = QBColor(forecolor)
End If
Many thanks,
driesm