Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Rich TextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mircea Pleteriu - 13 Feb 2006 16:20 GMT
Hi all,

I have two RichTExtbox controls on a form.
After the user is done editing them a 3rd RTB control shoud contain the
merged contents of the other 2 controls (as the contents of the 2nd control
is appended to the content of the 1st).

Any idea how to achive that?

It does not work by just rtf3 = rtf1 + rtf2.
Mike Edgewood - 13 Feb 2006 16:32 GMT
At first glance it looks like you are trying to merge two controls, not
the contents of those controls.

How about

rtf3.appendtext(rtf1.rtf)
rtf3.appendtext(rtf2.rtf)

or

rtf3.rtf = rtf1.rtf & rtf2.rtf
Mircea Pleteriu - 14 Feb 2006 07:18 GMT
I'm back,

I've got a working solution.
Here it is:

this.richTextBox3.SelectionStart = this.richTextBox3.Text.Length;

this.richTextBox3.SelectionLength = 0;

this.richTextBox3.SelectedRtf = this.richTextBox1.Rtf;

this.richTextBox3.SelectionStart = this.richTextBox3.Text.Length;

this.richTextBox3.SelectionLength = 0;

this.richTextBox3.SelectedRtf = this.richTextBox2.Rtf;

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.