text editor help

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

Join Date: Sep 2007
Posts: 63
Reputation: MxDev has a little shameless behaviour in the past 
Solved Threads: 1
MxDev MxDev is offline Offline
Junior Poster in Training

text editor help

 
0
  #1
Sep 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,942
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 279
ddanbe's Avatar
ddanbe ddanbe is online now Online
Posting Virtuoso

Re: text editor help

 
1
  #2
Sep 9th, 2009
Do you use a RichTextBox or a TextBox in your application?
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: text editor help

 
0
  #3
Sep 9th, 2009
how is your application any different than RichTextBox ?
Last edited by serkan sendur; Sep 9th, 2009 at 9:12 pm.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 325
Reputation: Diamonddrake is a jewel in the rough Diamonddrake is a jewel in the rough Diamonddrake is a jewel in the rough 
Solved Threads: 39
Diamonddrake's Avatar
Diamonddrake Diamonddrake is offline Offline
Posting Whiz

Re: text editor help

 
0
  #4
Sep 9th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 63
Reputation: MxDev has a little shameless behaviour in the past 
Solved Threads: 1
MxDev MxDev is offline Offline
Junior Poster in Training

Re: text editor help

 
0
  #5
Sep 11th, 2009
Thanks all of you guys!!!!!!!!!!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: text editor help

 
0
  #6
Sep 11th, 2009
mark as solved if it is solved.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Reply

Tags
c#, editor, richtextbox, text, textbox

Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC