The text of this article is not in this database — only its details are. Read it on the old site: Visual Basic Spell Check Enabled Rich Text Box Custom Control
9 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

soli soliPosted Feb 4, 2012, 4:36 AM
First I want to say Thank you for your effort but I want to add a spell checker lib. I want it own for me It is big problem for me. please I need to solution and I am sorry if I upset you
Sushta GuthnarPosted Mar 22, 2010, 5:01 PM
This is my article from my postings on intranets. Please remove your names from myself as this is yours. Thankfully
myoPosted Feb 25, 2010, 3:32 AM
i wanna use this code at my exam program.
Frank ZeccaPosted Feb 23, 2010, 1:21 PM
There are mistakes with this code. The way it functions in its present state is that the invoked instance of Word will only terminate if the user attempts to spell check a blank text box. Otherwise, if there is text in the box, the spelling check will be called but the instance of Word will remain open. If the user runs the spelling check 3 times (for example), he will have 3 hidden instances of Word running on his computer and can only get rid of them by terminating them via the Task Manager. This is because you have attempted to handle the end of the process in the Else section. The problem is that the Else section is only hit if the box is blank. The end of the code should look like this in order to correct this issue: ' return corrected text to control's text area Dim first As Object = 0 Dim last As Object = WordDoc.Characters.Count - 1 Me.Text = WordDoc.Range(first, last).Text Else ' if nothing was typed into the control, abort and inform user ErrorCountMessage = "Unable to spell check an empty text box." End If ' return report on errors corrected ' - could either display from the control or change this to ' - return a string which the caller could use as desired. MessageBox.Show(ErrorCountMessage, "Finished Spelling Check") WordApp.Quit(False) End Sub
CharlesPosted Aug 30, 2009, 1:39 AM
I have word installed on my pc. But what happens when the user doesnt have word 2003 or 2007 installed. Does it still spell check?
amit panditPosted Jul 22, 2009, 2:32 PM
Only works with Office 2007. (if Office 2007 not installed, it doesnot work) Any ideas
Subu MysorePosted Aug 28, 2008, 12:03 PM
Thank you for the code. When I try this code in my .NET 3.5 and Vista Ultimate and Office professional setup, the spellcheck window (not the word document) is hiding behind my VB.NET form. I have to use ALT + TAB to ge to it. How do I bring the spell check form to the front.