943,902 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2865
  • C# RSS
Sep 9th, 2009
0

text editor help

Expand Post »
Hi guys,
I wrote a simple text editor using C#. It can maintain the text format like font color, and font size when text pasted to it, and I able to save it to .doc, or .rtf. When I open the saved file with appropriate application like MS Word, it read it good, but here's the problem. When I try to open the saved file into my application it can't read well due to the saved format, but when I open any file saved as normal text file it works goods.

So, how to overcome this???


Thanks in advance
Similar Threads
Reputation Points: 8
Solved Threads: 3
Junior Poster
MxDev is offline Offline
137 posts
since Sep 2007
Sep 9th, 2009
1

Re: text editor help

Do you use a RichTextBox or a TextBox in your application?
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Sep 9th, 2009
0

Re: text editor help

how is your application any different than RichTextBox ?
Last edited by serkan sendur; Sep 9th, 2009 at 9:12 pm.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Sep 9th, 2009
0

Re: text editor help

if you can keep formatting when you paste into your text box, its a richtext box.

inorder to save and open ritch text formatting to a ritchtext box you must you richtextbox.SaveFile(). and richtextbox.LoadFile() receptively.

not just read and set its text property.
Reputation Points: 442
Solved Threads: 89
Master Poster
Diamonddrake is offline Offline
721 posts
since Mar 2008
Sep 11th, 2009
0

Re: text editor help

Thanks all of you guys!!!!!!!!!!!
Reputation Points: 8
Solved Threads: 3
Junior Poster
MxDev is offline Offline
137 posts
since Sep 2007
Sep 11th, 2009
0

Re: text editor help

mark as solved if it is solved.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 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:





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


Follow us on Twitter


© 2011 DaniWeb® LLC