Using Checkspelling With Vb.net And Word
Dim wd As Word.Application = New Word.Application
If wd.CheckSpelling(MyControlArray.wordtemp) Then
MessageBox.Show(" ok")
Else
MessageBox.Show("noT ok")
End If
wd.Quit()
wd = Nothing
End Sub
MyControlArray is a class with wordtemp defined as" public dim wordtemp as string"!
in this program, by clicking a setof buttons , i am framing a word (button name assinged with alphabets), then sequence of clicks frame a word, so exactly a string is passed to the checkspelling method of word.application, but i receive "ok" messaege, even for a misspelled word!
please help me to fix the problem!

