473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Append rtf content to a richtextbox

Fab
Hi,

I have a two richtextbox with rtf content.
I just want to add the content of the 2 richtextbox into a third one.

When I use the code below, the richTextBox3 remains empty.
richTextBox3.Rtf += richTextBox1.Rtf;
richTextBox3.Rtf += richTextBox2.Rtf;

And of course i can't use richTextBox3.AppendText because i need to keep the
formaated text of richTextBox1 and richTextBox2.

Is there any solution ?!

Thanks !

Nov 30 '06 #1
1 7570
Jim

Try this:

richTextBox1.SelectAll();
richTextBox1.Copy();
richTextBox3.Paste();

richTextBox2.SelectAll();
richTextBox2.Copy();
richTextBox3.Paste();

Nov 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dean | last post by:
Printing content of RichTextBox (as described here (in C#) http://support.microsoft.com/default.aspx?scid=kb;en-us;812425) results in white background of the text printed. Is there any way of...
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
0
by: Dennis | last post by:
Hi everyone, is there a way to fit a Richtextbox to its content? Thanks Dennis
0
by: Frenchpicker | last post by:
I need to store the content of a RichTextBox in a database field. I've tried a few thing but nothing seems to work. I know I must create a stream that will store the data in a base64Binary element...
0
by: Vincent | last post by:
Dear all, I have implemented a class to export the content of RichTextBox to image in WYSISYG mode so that line breaks on the screen are the same as exported. C# Code: public struct...
0
by: Vimalathithan | last post by:
Hi Every one, I have developing the user control with RichTextBox in C# windows application. The problem is when I paste any text inside the RichTextBox at the runtime the pasted lines not in...
1
by: Asking | last post by:
Hi all, how to save/read content of a RichTextBox to/from binary field in Ms.SQL Server ? I want to do save and read operation... I couldn't it Thank you
9
by: Phill W. | last post by:
VB.Net 2005 SP1 Windows Forms Application What's the fastest way to append text to a TextBox? I have an application that monitors data written to text files. It needs to scan some fairly...
0
by: Aneesh Pulukkul [http://dotnet-revolutions.blogspo | last post by:
I have a requirement- need to display RTF content in context menu. I am able to host a rich textbox in a contextmenu strip using ToolStripControlHost class. But assigning some RTF content to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.