943,822 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 5909
  • C# RSS
Jan 10th, 2009
0

Load a file to RichTextBox

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Hannahlv is offline Offline
31 posts
since Jul 2008
Jan 10th, 2009
0

Re: Load a file to RichTextBox

Why doesnt it work - what exactly goes wrong? What code are you using?
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Jan 10th, 2009
0

Re: Load a file to RichTextBox

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
Reputation Points: 28
Solved Threads: 5
Light Poster
BlackSun is offline Offline
46 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Substring in C#
Next Thread in C# Forum Timeline: want to login to windows through c#





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC