Load a file to RichTextBox

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 30
Reputation: Hannahlv is an unknown quantity at this point 
Solved Threads: 0
Hannahlv Hannahlv is offline Offline
Light Poster

Load a file to RichTextBox

 
0
  #1
Jan 10th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Load a file to RichTextBox

 
0
  #2
Jan 10th, 2009
Why doesnt it work - what exactly goes wrong? What code are you using?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 46
Reputation: BlackSun is an unknown quantity at this point 
Solved Threads: 4
BlackSun BlackSun is offline Offline
Light Poster

Re: Load a file to RichTextBox

 
0
  #3
Jan 10th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC