UltraSpellChecker - showing suggestions in British English
please can any one help me in the following,
In the below shown window the suggestions should be based on British English.
I have been investigating this behavior you are looking for, and currently, the UltraSpellChecker has built-in dictionaries for English (generic), English (UK), Australian, Canadian, Dutch, French, German, Portuguese, and Spanish. These dictionaries can be found at the following directory with the Infragistics product installed:
C:\Program Files (x86)\Infragistics\<your version here>\Windows Forms\Dictionaries
By default, if no Dictionary is set to the UltraSpellChecker.Dictionary property, the English(generic) one will be used. It appears that the British English dictionary is named “uk-english-v2-whole.dict” in the above directory, and so I would recommend setting the Dictionary property on the UltraSpellChecker to point at this one in order to use a British English dictionary.
Please let me know if you have any other questions or concerns on this matter.
I appreciate for the quick replay, i have added the dictionary to the control from the give path.
But my problem is as per our requirement i want to show Immunisation instead of Immunization and when i typed Immunisation the auto underline error also should not appear is there any thing can i do for it.
Second how to hide the blue color on the top of the window.
Third is there any button to auto correct all the errors can i override your control if so can you provide any sample links.
Thanks & Regards
Thank you for your update on this matter. I will answer your new inquiries in the order they were asked.
1. I have put together a sample project targeting the “uk-english-v2-whole.dict” dictionary in version 18.2, and I am currently unable to reproduce the behavior you are seeing. When I try “Immunisation” there is no red underline, and if I type something like “Immunination,” the word “Immunisation” appears in the search box. As a workaround to this, if the attached sample project still does not work on your end, you can specify a UserDictionary for the UltraSpellChecker and use the AddWordToUserDictionary method to add words to the dictionary that the UltraSpellChecker uses.
2. In order to hide the blue color on top of the window, I would recommend handling the SpellCheckDialogOpening event of the UltraSpellChecker and then getting the SpellCheckDialogBase from the event arguments. This will have an UltraGroupBox in its Controls collection, which you can set the Appearance.ImageBackground to null on. This will remove the blue border at the top. If you are also looking to remove the text, I would recommend removing the first UltraLabel from the UltraGroupBox.Controls collection as well.
3. The UltraSpellChecker is extendable, but it will not “auto-correct” all of the errors for you. If you would like to see functionality made available such that the UltraSpellChecker will auto-correct errors for you, I would recommend suggesting a new product idea for this at our Windows Forms Ideas Site. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
I am attaching a sample project that demonstrates the points above. In the sample, typing “Immunisation” into the TextBox and spell checking will not result in an error, the blue color at the top of the window is removed, and the UltraSpellChecker used is a derived one.
Thanks for your comments,
both one and two works for me.