473,395 Members | 1,730 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,395 software developers and data experts.

Read in RTF into a RichTextBox control and save it to a RTF file

Hi there

How can I read a RTF file into a RichTextBox control without the original
format being lost? And how can I
save the text entered in a RichTextBox into a RTF file without the original
format being lost? It seems I can't use
System.IO.StreamReader. Is there any thing I can use to do this?

Many thanks

Yuelin
Nov 15 '05 #1
1 6534
Have you tried the RTF box's 'SaveFile' or 'LoadFile' methods? If format is
lost using these commands, then the RTF box does not support your 'original
format'.

-Noah Coad
Microsoft MVP & MCP [.NET/C#]

"Yuelin" <li***@lineone.net> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
Hi there

How can I read a RTF file into a RichTextBox control without the original
format being lost? And how can I
save the text entered in a RichTextBox into a RTF file without the original format being lost? It seems I can't use
System.IO.StreamReader. Is there any thing I can use to do this?

Many thanks

Yuelin

Nov 15 '05 #2

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

Similar topics

0
by: nouno | last post by:
I am trying to spell check a richtextbox. Through code (shown below) I save the contents of the richtextbox to a rtf file, open the rtf file in Word, spell check it, save it, and then load the ftf...
5
by: Shayer | last post by:
Hello All I am trying to read a MSDoc file and PDF file using Streamreader and then display the content into a richtext box. But cant do that. Anyone can pls help me out Thanks Shayer
2
by: Reinhard Vornholt | last post by:
Hi, I have problems with the Windows.Forms.RichtextBox Control of the VS. I have a text that is written with WordPad. In this text there are tables. The cells in the tables are holding multiple...
2
by: tulasi | last post by:
Hi, Iam plcaing some textboxes and combo boxes in rictextbox control. And am placing 2 command buttons oin the form. So when i run the application, i will enter some text in textboxes and i will...
1
by: tulasi | last post by:
I am placing textbox controls and combo box controls on richtext box and 2 command buttons on form control. after executing the application i'll place some text into textbox controls and select a...
8
by: james | last post by:
I am trying to use Filestream to read a file ( .DAT) that contains values in HEX that I want to convert to text. I know the different offset addresses for each portion of the data I am trying to...
0
by: AxOn | last post by:
Hi! I'm having trouble creating a save funktion. How can I save the contens of a new richTextBox that is created from an "external" class file? The open funktion looks like this: public void...
8
by: AxOn | last post by:
Hi, How can i save the specific RichTextBox in the selected tab if i have several tabs with RichTextBoxes in? The application is a text editor type program and when i try to save the most...
0
Ajm113
by: Ajm113 | last post by:
Contributing To: Saving RichTextBox from Tab Control Ok, I have a question what would I use if I wanted to do something like a paste function in a Rich Text Box using the code on that thread?...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.