This is a migrated thread and some comments may be shown as answers.

Should I use this just for the spell check?

2 Answers 42 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 08 Jan 2011, 03:28 AM
I just want a multi row text block with no formatting, but I need to spell check it.  I think the only or best way to do this is with this richTextBox control. Would I have to convert the result to XML or HTML and then filter out the tags?  Is there an easy output where i can just get the text?  I don't care about any of the formating, I just want boring text.

2 Answers, 1 is accepted

Sort by
0
danparker276
Top achievements
Rank 2
answered on 08 Jan 2011, 03:59 AM
Actually the txtformatProvider works pretty good.  Is there an easy way I can turn all the formatting options off and make it look like a regualr textbox?  On the right click for spell check as well?

Edit:
If I create a new richTextBox and enter text, it looks good.  When I import a document, it makes it look like a regular page with a blue background and scroll bars on the richTextBox .
I'm importing like:

rrtbDescription.Document =

 

new TxtFormatProvider().Import(myText);

 


0
danparker276
Top achievements
Rank 2
answered on 10 Jan 2011, 06:01 PM
Ok, I think I'm all set, I need to set:

rrtbDescription.Document.LayoutMode =

 

DocumentLayoutMode.Flow;

 



And then things are ok.
Tags
RichTextBox
Asked by
danparker276
Top achievements
Rank 2
Answers by
danparker276
Top achievements
Rank 2
Share this question
or