Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Word Spellcheck 2

Status
Not open for further replies.

Fendal

Technical User
Sep 13, 2005
178
GB
Hi All,

Is it possible to use the MS Word Spellchecker in my richtextbox on my VB program, or will I need to write a dictionary of words. ?

Thanks.
 
Here is what I used in a regular textbox. You could test to see if it will work in richtext

You will need to add a referance to MS wordx.x object library

Dim X As Object
Set X = CreateObject("Word.Application")
X.Visible = False
X.WindowState = 2
X.Documents.Add

X.Selection.Text = text1.text
X.ActiveDocument.CheckSpelling
text1.text = X.Selection.Text
 
Here are several other examples as well as a link to a example from Microsoft.

thread222-88875

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top