Quote Originally Posted by MacShand View Post
Jwinney, can you assist me with getting the spell checker to work with my project in vb 2010?
I'm not an expert but here is what I did in detail:

• Open the project in VB 2010
• Let it do the conversion to a VB 2010 project
• Right Click 'Tests' in the Solution Explorer and Remove
• Right Click i00SpellCheck in the Solution Explorer -> Properties
• Click the Compile Tab then Advanced Compile Options... button.
• Change Target framework (all configurations) option to .NET Framework 4 -> OK

• Open [Solution Explorer] SpellCheck -> Textbox.vb
• Expand 'Textbox'
• Replace the parentTextBox_TextChanged sub with this one (by jim400):

Code:
    Private Sub parentTextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles mc_parentTextBox.TextChanged
        'RepaintTextBox()
        'parentTextBox.Invalidate()
        If parentTextBox.TextLength = 0 Then
            If Settings.ShowMistakes Then
                CloseOverlay()
                OpenOverlay()
            End If
        End If
    End Sub

• Open [Solution Explorer] About -> AutoGrowLabel.vb
• Remove the following line from near the top:

Code:
<System.ComponentModel.Browsable(True), Editor(GetType(System.ComponentModel.Design.MultilineStringEditor), GetType(UITypeEditor))> _
File -> Save All
Build -> Build i00Spellcheck

In your own project:

Project -> Properties
• Click the Compile Tab then Advanced Compile Options... button.
• Change Target framework (all configurations) option to .NET Framework 4 -> OK
• Click the References Tab and Add... Browse and find the i00Spellcheck.exe file from the i00Spellcheck project (SpellCheck\i00SpellCheck\bin\Debug)
• Copy the following files from SpellCheck\i00SpellCheck\bin\Debug to YOUR projects Debug folder

def.def
dic.dic
syn.syn
def (folder)


Add either Me.EnableSpellCheck() to the Form1_Load or <yourtextbox>.SpellCheck() somewhere else.

(Optional) Add a button with the following code to show full spell check window <yourtextbox>.SpellCheck.ShowDialog()