How do u copy Colored text from one Richtextbox to another?
It should be easy, but I haven't found the way to do it.
How do u copy Colored text from one Richtextbox to another?
It should be easy, but I haven't found the way to do it.
A couple of ways have worked with me:
VB Code:
RichTextBox1.TextRTF = RichTextBox2.TextRTF RichTextBox1.SelText = RichTextBox2.TextRTF
Phreak
Thx phReAk!
Sounds like they should work.
Unfortunately, the RTB's I'm using are in UserControls.
When I tried adding the TextRTF properties to the UserControl, VB6 went BOOM!!! LOL
I'll post a Resolved if I can get the TextRTF properties working so I can test these.
Got it working.
Thx again phReAk
another question of the same topic...
i want to do something like this:
but with a RTB...VB Code:
Text2.Text = Text2.Text & Text1.Text
i tried:
but it dont work...VB Code:
Text2.TextRTF = Text2.TextRTF & Text1.TextRTF
if someone has the answer, plz tell me...
VB Code:
Text2.SelStart = 200000 'Just some high number to put it at the end Text2.SelRTF = Text1.TextRTF
Try that.
it worked!...tnx...then another question...
how can i do this:
and in another form (or another computer):VB Code:
dim dat as string dat = text1.textrtf winsock1.senddata dat
will this work? or is there a problem converting the text1.textrtf to string...VB Code:
dim dat as string winsock2.getdata dat text2.SelStart = Len(text2) text2.SelRTF = dat