Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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

Ran_TH

New member
Joined
Sep 14, 2017
Messages
3
Hello i00, thank you for providing such useful project for the community!
I'd like to ask, is this compatible with VS2017? I tried to open the project, some forms are just unable to open.
Here's what the Designer view said:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: SpellCheckDialog --- The base class 'i00SpellCheck.WindowAnimation' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.

I'd like to implement only Spell Check dialogue for my project.
Thanks in advance!
 

toye

New member
Joined
Sep 26, 2017
Messages
1
I am using i00 Spell check in my project.
Great work! Easy to implement and works exactly as described!

Randy Toye
 

Ran_TH

New member
Joined
Sep 14, 2017
Messages
3
Hello...
So I have implemented it to my project, however I want to know one thing.. is there a way to disable the Window Animation?
Since Windows 7 already has animation when the window opens anyway so I want to disable this. Could anyone give a hint what should I change?

Thanks.
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Hello...
So I have implemented it to my project, however I want to know one thing.. is there a way to disable the Window Animation?
Since Windows 7 already has animation when the window opens anyway so I want to disable this. Could anyone give a hint what should I change?

Thanks.

Open the forms designer and where it says inherits ... At the top.. change that to inherits windows.form

Kris
 

Ran_TH

New member
Joined
Sep 14, 2017
Messages
3
Open the forms designer and where it says inherits ... At the top.. change that to inherits windows.form

Kris

Thank you!
Btw say that I have collections of string that I would like to check...
These strings needs to be has specified index/keys.
Is there a way I could check all of them at once instead of per string? I don't want the user to click Close to confirm changes per string checked.

Or maybe at least how to make the spell check auto close by itself after spell check complete...I've been stepping through the codes but I don't find the lines for Close button...
 

David Kuchmar

New member
Joined
Feb 16, 2018
Messages
1
Re: i00 .Net Spell Check - No 3rd party components required!

Re: i00 .net spell check..... WOW ... will i fumbled my way through it for 2 days before i could get it to work. It is everything you said it was. My minor suggestion is.... (and i apologise if i seem a little in experienced - it has been a while since detailed development).... your instructions on getting to use it - need a few more words to make things obvious - and some of the instructions are not quite perfect - such as the imports statement. It took me two days to work out how to add the dictionary files - which solved my problem. Looking through your threads... others have had this problem also. In any case, i repeat, it is fabulous! Thank you!!!
 

Zifster

New member
Joined
Feb 28, 2018
Messages
1
Re: i00 .Net Spell Check - No 3rd party components required!

I am using i00 Spell Check in my project.

Thanks so much for this component!
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Thank you!
Btw say that I have collections of string that I would like to check...
These strings needs to be has specified index/keys.
Is there a way I could check all of them at once instead of per string? I don't want the user to click Close to confirm changes per string checked.

Or maybe at least how to make the spell check auto close by itself after spell check complete...I've been stepping through the codes but I don't find the lines for Close button...

What do you mean all at once?? ...
Just loop through the words in your collection and check each word ... to the user it will look like this is all at once.. There is an example on how to check a single word in the menu on the demo project.

Kris
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Re: i00 .Net Spell Check - No 3rd party components required!

It is everything you said it was.

Thanks :)

My minor suggestion is.... (and i apologise if i seem a little in experienced - it has been a while since detailed development).... your instructions on getting to use it - need a few more words to make things obvious - and some of the instructions are not quite perfect - such as the imports statement. It took me two days to work out how to add the dictionary files - which solved my problem. Looking through your threads... others have had this problem also. In any case, i repeat, it is fabulous! Thank you!!!

Yea sorry about the instructions .. They are a little out of date and also were originally written for VS2008 ...

https://www.codeproject.com/Articles/265823/i00-Spell-Check-No-Third-Party-Components-Required prob has more up to date instructions :).

Kris
 

Signalman

New member
Joined
Apr 11, 2010
Messages
276
Re: i00 .Net Spell Check - No 3rd party components required!

When I attempt ot run the appication code supplied. I get an error that Microsoft.Office.Interop.Word.Application is not defined. I have installed the office interop assembelies, and added in the reference to Microsoft.Office.Interop.Word but the errror wont go away.

Any Ideas

Code:
Public Class Word

    Friend Shared ReadOnly Property WordApp() As [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR]
        Get
            Static mc_WordApp As [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR] = Nothing
            If mc_WordApp Is Nothing Then
                mc_WordApp = New [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR]
                mc_WordApp.Documents.Add()
                AddHandler Application.ApplicationExit, AddressOf ApplicationExit
                mc_WordApp.DisplayAlerts = [COLOR="#FF0000"]Microsoft.Office[/COLOR].Interop.Word.WdAlertLevel.wdAlertsAll
                'mc_WordApp.Visible = True
            End If
            Return mc_WordApp
        End Get
    End Property

    Private Shared Sub ApplicationExit(ByVal sender As Object, ByVal e As System.EventArgs)
        WordApp.Quit()
    End Sub

Code:
        Public Overrides Function SpellCheckSuggestionsInternal(ByVal Word As String) As System.Collections.Generic.List(Of i00SpellCheck.Dictionary.SpellCheckSuggestionInfo)
            Dim suggestions = WordApp.GetSpellingSuggestions(Word)
            SpellCheckSuggestionsInternal = New List(Of i00SpellCheck.Dictionary.SpellCheckSuggestionInfo)
            Dim closeness As Integer
            For Each suggestion In suggestions.OfType(Of [COLOR="#FF0000"]Microsoft.Office.Interop.Word.SpellingSuggestion[/COLOR])()
                SpellCheckSuggestionsInternal.Add(New i00SpellCheck.Dictionary.SpellCheckSuggestionInfo(closeness, suggestion.Name))
                closeness -= 1
            Next
        End Function
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Re: i00 .Net Spell Check - No 3rd party components required!

When I attempt ot run the appication code supplied. I get an error that Microsoft.Office.Interop.Word.Application is not defined. I have installed the office interop assembelies, and added in the reference to Microsoft.Office.Interop.Word but the errror wont go away.

Any Ideas

Code:
Public Class Word

    Friend Shared ReadOnly Property WordApp() As [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR]
        Get
            Static mc_WordApp As [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR] = Nothing
            If mc_WordApp Is Nothing Then
                mc_WordApp = New [COLOR="#FF0000"]Microsoft.Office.Interop.Word.Application[/COLOR]
                mc_WordApp.Documents.Add()
                AddHandler Application.ApplicationExit, AddressOf ApplicationExit
                mc_WordApp.DisplayAlerts = [COLOR="#FF0000"]Microsoft.Office[/COLOR].Interop.Word.WdAlertLevel.wdAlertsAll
                'mc_WordApp.Visible = True
            End If
            Return mc_WordApp
        End Get
    End Property

    Private Shared Sub ApplicationExit(ByVal sender As Object, ByVal e As System.EventArgs)
        WordApp.Quit()
    End Sub

Code:
        Public Overrides Function SpellCheckSuggestionsInternal(ByVal Word As String) As System.Collections.Generic.List(Of i00SpellCheck.Dictionary.SpellCheckSuggestionInfo)
            Dim suggestions = WordApp.GetSpellingSuggestions(Word)
            SpellCheckSuggestionsInternal = New List(Of i00SpellCheck.Dictionary.SpellCheckSuggestionInfo)
            Dim closeness As Integer
            For Each suggestion In suggestions.OfType(Of [COLOR="#FF0000"]Microsoft.Office.Interop.Word.SpellingSuggestion[/COLOR])()
                SpellCheckSuggestionsInternal.Add(New i00SpellCheck.Dictionary.SpellCheckSuggestionInfo(closeness, suggestion.Name))
                closeness -= 1
            Next
        End Function

That is just for the Word plugin ... to demonstrate that it can work with other spelling engines ... you can just unload the project... unless you really want to use word .. which I would NOT advise.

Kris
 

T0PGun

New member
Joined
Oct 10, 2018
Messages
11
Re: i00 Spell Check and Control Extensions - No Third Party Components Required

Hi Guys

Please i need some help. I download i00 Spellchecker from one of the other sites, and built it into my program. At first, it was working fine. But then I added in Crystal Reports, so we had to upgrade the .NET Framework to 4.7. After doing this, some machines are still working fine, when others get the following error:
Code:
System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Then, on other machines, we don't get an error, but rather the whole window resizes, as shown below:
Before right clicking:
View attachment 162369

And after right clicking for spellcheck
View attachment 162371

I am lost, and don't know what to do, please can someone help me.

Thanks
T0PGun
 

T0PGun

New member
Joined
Oct 10, 2018
Messages
11
Re: i00 Spell Check and Control Extensions - No Third Party Components Required

Hi Everyone,

Please I urgently need help on this. Is there anyone that can help me. I need to get this problem resolved today if possible.

Thanks
T0PGun
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Re: i00 Spell Check and Control Extensions - No Third Party Components Required

Hi Everyone,

Please I urgently need help on this. Is there anyone that can help me. I need to get this problem resolved today if possible.

Thanks
T0PGun

Hrm... I though I had released the fix for that version... the reason that the resizing is happening is because of the DPI... when a WinForms app loads WPF references this happens..
I used WPF to create a blur effect that is used for tool tip shadows.. to get around it look for GausianBlur.vb and change the GausianBlur method to:

[highlight=vb]Public Sub GausianBlur(Optional ByVal Amount As Integer = 4)
OnFilterStarted()

OnFilterFinished()
End Sub

End Class
[/highlight]

... as for the other error do you have any more details... eg when does this happen? ... the call stack does not seem to include any of my lines.. is this the full stack?

Also I use this with 4.7 with no issues (a few modifications since the last release though)

Kris
 

T0PGun

New member
Joined
Oct 10, 2018
Messages
11
Re: i00 Spell Check and Control Extensions - No Third Party Components Required

Hrm... I though I had released the fix for that version... the reason that the resizing is happening is because of the DPI... when a WinForms app loads WPF references this happens..
I used WPF to create a blur effect that is used for tool tip shadows.. to get around it look for GausianBlur.vb and change the GausianBlur method to:

[highlight=vb]Public Sub GausianBlur(Optional ByVal Amount As Integer = 4)
OnFilterStarted()

OnFilterFinished()
End Sub

End Class
[/highlight]

... as for the other error do you have any more details... eg when does this happen? ... the call stack does not seem to include any of my lines.. is this the full stack?

Also I use this with 4.7 with no issues (a few modifications since the last release though)

Kris

Hi i00

Your suggestion worked, and my customer's screen is no longer zooming. Thank you so much, I appreciate it. As for the error, that is all it gave me, however, I have noticed that since I upgraded my IDE to version 15.8.7 the error has not appeared.

Thank you so much again i00, you don't know how much i really appreciate this, as I think your spellchecker is great.

Regards
T0PGun
 

loganh

New member
Joined
Jan 11, 2019
Messages
2
Hello community and i00,

I've seen so many people using this project you have made and it sounds great. I'm having a hard time understanding the directions to add it to an existing vb form. Would it be possible for yourself or anyone in the community to help make a video showing how to use the program? I know it would help a lot as I'm not very code savy but I'm a very good repeater so either visual steps or detailed steps would be best for someone like myself. I"m using Visual Studio 2017 and on a vb solution. Thank you! Also once I get it working I am using i00 Spell check in my project!
 

i00

PowerPoster
Joined
Mar 1, 2002
Messages
2,347
Hello community and i00,

I've seen so many people using this project you have made and it sounds great. I'm having a hard time understanding the directions to add it to an existing vb form. Would it be possible for yourself or anyone in the community to help make a video showing how to use the program? I know it would help a lot as I'm not very code savy but I'm a very good repeater so either visual steps or detailed steps would be best for someone like myself. I"m using Visual Studio 2017 and on a vb solution. Thank you! Also once I get it working I am using i00 Spell check in my project!

The easiest way is to run the demo project then take the i00SpellCheck.dll from the folder and reference it in your project...
Then just put Imports i00SpellCheck at the very top of your forms code
Then call Me.EnableSpellCheck() on your Form.Load
 

loganh

New member
Joined
Jan 11, 2019
Messages
2
The easiest way is to run the demo project then take the i00SpellCheck.dll from the folder and reference it in your project...
Then just put Imports i00SpellCheck at the very top of your forms code
Then call Me.EnableSpellCheck() on your Form.Load

Hey, i00 thanks for the fast reply. I've tried to pull up a test visual studio file but it has tons of errors. To save on time sake is it possible to get that i00SpellCheck.dll messages to me from this site? It sounds like I just need that 1 single file from someone like yourself (the creator) and I can just reference it to my project I'm using? Let me know what you think I can attach a screenshot of the errors if you feel it would be better to tackle the list of errors I'm getting. (I know one of the errors refers to the office but I have office installed the latest version). Let me know what you think?

https://imgur.com/a/q9X7PVH
 

T0PGun

New member
Joined
Oct 10, 2018
Messages
11
Re: i00 Spell Check and Control Extensions - No Third Party Components Required

HI i00

Last time you assisted me where the screen was resizing, which seemed to work. Unfortunately, I have run into instances where it is no longer working, even on .NET framework 4.7.2. So far all the machines i have found it on seems to be machines with a high resolution, but yet they have a zoom factor on it. (E.G. 4k screens).

Please can you assist me in this again. If you like, I have access to one of these machines if you want to organise a look into it.

Thanks
T0PGun
 
Top