Click here to Skip to main content
15,895,667 members
Articles / Desktop Programming / Windows Forms

i00 Spell Check and Control Extensions - No Third Party Components Required!

Rate me:
Please Sign up or sign in to vote.
4.95/5 (117 votes)
11 Jan 2014Ms-PL16 min read 1.4M   22   266  
Simple to use, open source Spell Checker for .NET
Imports i00SpellCheck

Public Class frmTest

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Me.Icon = My.Resources.Icon

        Dim Hunspell_Dic As New Hunspell_Dic
        Hunspell_Dic.LoadFromFile("en_US.dic")
        i00SpellCheck.Dictionary.DefaultDictionary = Hunspell_Dic

        Using MessageBoxManager As New MessageBoxManager
            MessageBoxManager.Yes = "Hunspell"
            MessageBoxManager.No = "i00"
            Select Case MsgBox("The Hunspell thesaurus uses alot of memory." & vbCrLf & "This is used for the ""Change to"" suggestions." & vbCrLf & vbCrLf & "Do you want to load the Hunspell thesaurus or use the i00 Spell Check synonyms instead?", MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo) = MsgBoxResult.Yes
                Case MsgBoxResult.Yes 'Hunspell thesaurus
                    Dim Hunspell_Syn As New Hunspell_Syn
                    Hunspell_Syn.File = "th_en_US.dat"
                    i00SpellCheck.Synonyms.DefaultSynonyms = Hunspell_Syn
                Case Else 'i00 Spell Check synonyms

            End Select
        End Using

        Me.EnableControlExtensions()

        PropertyGrid1.SelectedObject = TextBox1.ExtensionCast(Of i00SpellCheck.SpellCheckTextBox)()

    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
i00
Software Developer (Senior) i00 Productions
Australia Australia
I hope you enjoy my code. It's yours to use for free, but if you do wish to say thank you then a donation is always appreciated.
You can donate here.

Comments and Discussions