473,326 Members | 2,192 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,326 software developers and data experts.

Rich Text Box's text to a txt file

Hi,
I tried to use FileStream and streamWriter to write a Rich Text Box's text
to a txt file. But all text is in one line. All return inputs in the Rich
Text Box are showed like a small square []. I tried NewLine property and also
binaryWriter. Neither work ok.
Could you help me with it?
Thanks in advance.

Li

Jul 21 '05 #1
2 1362
Li Weng wrote:
Hi,
I tried to use FileStream and streamWriter to write a Rich Text Box's text
to a txt file. But all text is in one line. All return inputs in the Rich
Text Box are showed like a small square []. I tried NewLine property and also
binaryWriter. Neither work ok.
Could you help me with it?
Thanks in advance.

Li

MyRichTextBox.savefile(filename,RichTextBoxStreamT ype.PlainText)

or

Dim MyReader as new io.StringReader(MyRichTextBox.ToStrring)

Dim MyLine as string = MyReader.ReadLine

Do loop....then write or append the 'MyLine' to a file.
Denis
Jul 21 '05 #2
Hi, Denis:

Thanks a lot for your help!

Li

"de*******@netscape.net" wrote:

MyRichTextBox.savefile(filename,RichTextBoxStreamT ype.PlainText)

or

Dim MyReader as new io.StringReader(MyRichTextBox.ToStrring)

Dim MyLine as string = MyReader.ReadLine

Do loop....then write or append the 'MyLine' to a file.
Denis

Jul 21 '05 #3

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

Similar topics

1
by: Jim P. | last post by:
I have a rich text box that I want to 'insert' into my SQL2K db. But I'm not sure how to handle it. Do I convert it to XML first? Do I place the rich text box in an object then insert it as a...
6
by: Brad Allison | last post by:
Hi, I guess I am not understanding something and I have been searching Help in VB, newgroups, etc. I have a simple application that contains just over 300 rich text files (these are breed...
1
by: Peter | last post by:
I have written a small terminal app that reads and writes to the serial port. In particular as the data is read from the serial port it is appended to the rich text box. The problem I am...
0
by: ray well | last post by:
hi, my app has two parallel rich text boxes containing the same content in 2 different languages. the lines parallel each other, line #3 in english contains the same content as line #3 in...
2
by: Li Weng | last post by:
Hi, I tried to use FileStream and streamWriter to write a Rich Text Box's text to a txt file. But all text is in one line. All return inputs in the Rich Text Box are showed like a small square . I...
5
by: Lee | last post by:
Hi, I have a rich text box that can have hyperlinks ect within the text! when I save this data to file how should I do it? that is can I just save it as text? or do I need to serialize it...
6
by: anirban | last post by:
hellow how can i do the following job i am using rich text box 6.0 i write something in the rich text box how can i save the file in disk as a text document which can easily open...
9
by: Neil | last post by:
I need to implement a rich text box in an MDB file for a user base that consists of Access 2000 and Access 2002. Unfortunately, I'm using Access 2003 on my development machine. My understanding is...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.