Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
SpellChecker difference between "Ignore All" and "Change All" behavior.
posted

Hi,

I am using the SpellChecker to check a number of controls on a Windows Form. My code loops through the control collection and verifies that the control is a valid control to spellcheck. Then, the control is passed to the spellchecker using the ShowSpellCheckDialiog method:

spellChecker.ShowSpellCheckDialog(controlToBeChecked)

The problem I am having is the difference in behavior when the "Change All" or "Ignore All" buttons are pressed. The documentation mentions this:

  1. Ignore All -- Ignore All ignores the current instance of the misspelled word as well as all future instances. Ignore All essentially "tricks" the spell checker into thinking the word is in the dictionary; however, the next time a spell check dialog box is opened, it will not remember these settings.
  2. Change All -- Clicking Change All will replace all occurrences of the misspelled word in the entire document to the word in the Change To box.

Is there any way I can get "Change All" to behave the same way as the "Ignore All" in terms of scope? Change All only works on the current document (or control), whereas Ignore All works on the current instance (or lifespan) of the control.

Thanks!