954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Load a file to RichTextBox

Hi everyone,
I'm doing an hotel application which has an introduction form. In that form I put a RichTextBox control and a menu toolstrip. I want to load a rtf file to richtextbox when the toolstrip is clicked (The file is a default file chosen by my choice). I can let the user choose the file and open it it richtextbox, but to load a default file I can't do. Can anyone give me a suggestion on how to do it?
Thank you very much.

Hannahlv
Light Poster
31 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Why doesnt it work - what exactly goes wrong? What code are you using?

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

hi
partially i didn`t inderstand u :)

if u wanna load rft file so u can use RichTextBox control :

richTextBox1.LoadFile(String Path,RichTextBoxStreamType.RichText);

that i tested but ther is more

bye

BlackSun
Light Poster
46 posts since Feb 2008
Reputation Points: 28
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You