I'm trying to add a spell checker to my wordprocessor app. This is the final part to my project. A bit tricky... well, for me at least.
I have a Winform with a RichTextBox & a WebBrowser and a ToolStrip with Buttons. I want to click ToolStripButton1 and it hides RTB and shows WebBrowser1, whilst selecting all RTB text and copying to clipboard... (please tell me if this is a dumb way to spellcheck)
Private Sub ToolStripButton1_Click(sender As System.Object, e As System.EventArgs) Handles ToolStripButton1.Click
WebBrowser1 then shows 'jspell.com' URL ... you then have to paste (manually) into their multiline textbox... click "SPELL CHECK"...
ToolStripButton2 I want to try capturing the corrected spelling from the online textbox and paste it back into RTB (replacing) all text. (Ideally, if this could all be done off one button action, would be better!!!!).
Private Sub ToolStripButton2_Click(sender As System.Object, e As System.EventArgs) Handles ToolStripButton2.Click
Dim myText As String = Me.WebBrowser1.Document.Body.InnerText
RichTextBox1.Text = myText
But the result appears as...
Free Online Spell Checker
Spell check English, French, Spanish, Italian or German. A medical spell checker is also included. Simply PASTE your text below, CLICK 'Spell Check' and COPY the corrected text back into your application...
I thought about possibly trying to detect 'Open Office' and if installed... open that spell checker... but I don't know how to do this either :(
can an Expert please help ;)