Imports Infragistics.Win.UltraWinSpellChecker Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim word As String = "speeling" 'Check the word for spelling Dim result As WordCheckResult = Me.spellChecker.CheckWord(word) If (result.SpelledCorrectly) Then MessageBox.Show("The word: """ + word + """ is spelled correctly.") Else MessageBox.Show("The word: """ + word + """ is spelled incorrectly.") End If End Sub
using System.Windows.Forms; using Infragistics.Win.UltraWinSpellChecker; private void button1_Click( object sender, EventArgs e ) { string word = "speeling"; //Check the word for spelling WordCheckResult result = this.spellChecker.CheckWord( word ); if ( result.SpelledCorrectly ) MessageBox.Show( "The word: \"" + word + "\" is spelled correctly." ); else MessageBox.Show( "The word: \"" + word + "\" is spelled incorrectly." ); }