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

RichTextBox problem - lost background

Hi,

thanks Noah for your advice.

I wrote following to read a rich text file into a RichTextBox control:

this.m_textBox.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);

I created a RTF file in Word, and gave the background yellow. But when open
the file
in the RichTextBox control the background becomes white instead of yellow.

Can anyone tell me what is the problem? Many thanks
Yuelin
Nov 15 '05 #1
1 1989
Glad it was of help. Simply put, the RichTextBox control doesn't support
that formatting element. It is unfortunate...

-Noah Coad
Microsoft MVP & MCP [.NET/C#]
"Yuelin" <li***@lineone.net> wrote in message
news:uA*************@tk2msftngp13.phx.gbl...
Hi,

thanks Noah for your advice.

I wrote following to read a rich text file into a RichTextBox control:

this.m_textBox.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);

I created a RTF file in Word, and gave the background yellow. But when open the file
in the RichTextBox control the background becomes white instead of yellow.

Can anyone tell me what is the problem? 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: 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...
1
by: Yuelin | last post by:
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...
0
by: Leitgeb | last post by:
RichText has 2 properties for setting text color and text. RichTextBox.SelectionColor = Color.Black ; RichTextBox.SelectionText = "Hello World" ; How do I set yello color background for...
2
by: Leon Friesema | last post by:
Hiyall! I have a RichTextBox inside a UserControl which should be able to indent a block off text (or UnIndent for that matter) like the SourceEditor of VS2003 or WinWord does. All controls on...
7
by: Richard | last post by:
When you give focus to a RichTextBox, then it goes to the textCursor, but i don't want to give the richtextbox focus, cause there is being written a lot in it, and I have to do something else at...
4
by: Supra | last post by:
>:o wooooooooow!..........i did this!!!!!!!!!!!!!!!! 8-) i got richtextbox working that will work with both background and forecolour to enable work with irc chat similar to mirc , pirch etc,...
3
by: michael sorens | last post by:
The documentation for the RichTextBox is sketchy at best. I want to do a very simple task but I cannot find information on this. I am using a RichTextBox as an output window. Some text I want to...
2
by: Luke | last post by:
I want 3 lines of green bars in richtextbox to be displayed every other 3 lines which can be toggled on and off. (3 lines of white background, 3 lines of green background, 3 lines of white...
2
by: drfreaky | last post by:
Hello, I want to use a richtextbox for logging status messages. I have three kind of message types and want to use different formatting for them. My problem is, I change the color, add the text...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.