|
|
Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib
By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS
|
GBIC >>
Source Code >>
Visual Basic >> Snippet
|
Richtextbox - merge contents of two richtextboxes
'put contents of richtextboxes 1 & 2 into a third richtextbox
RichTextBox1.SelStart
=
0
RichTextBox1.SelLength
=
Len(RichTextBox1.Text)
RichTextBox2.SelStart
=
0
RichTextBox2.SelLength
=
Len(RichTextBox2.Text)
RichTextBox3.SelStart
=
0
RichTextBox3.SelLength
=
Len(RichTextBox3.Text)
RichTextBox3.SelRTF
=
RichTextBox1.SelRTF
RichTextBox3.SelStart
=
Len(RichTextBox3.Text)
RichTextBox3.SelLength
=
0
RichTextBox3.SelText
=
vbCrLf
RichTextBox3.SelStart
=
Len(RichTextBox3.Text)
RichTextBox3.SelLength
=
0
RichTextBox3.SelRTF
=
RichTextBox2.SelRTF
RichTextBox1.SelStart
=
0
RichTextBox1.SelLength
=
0
RichTextBox2.SelStart
=
0
RichTextBox2.SelLength
=
0
|
|
|
|