hello, I am using ultraspellchecker in that i have to visible false the heading in spellcheckdialog ("Spelling error found")
and also need to add some button in spellcheckdialog window how can i do
Hello,
When errors are found you can override the text displayed via the CheckText method.
eg.
if (this.ultraSpellChecker1.CheckText(this.richTextBox1.Text).Count == 0) { MessageBox.Show("No Spelling Errors"); } else if (this.ultraSpellChecker1.CheckText(this.richTextBox1.Text).Count > 0) { MessageBox.Show( this.ultraSpellChecker1.CheckText( this.richTextBox1.Text).Count + " Spelling Errors Found!"); }
Hi Michael,
thanks for your reply but below one is my problem.
i don't want to display "spelling errors found" heading in Modal spell Check Dailog window
With the approach I gave above you should be able to supply an empty string. Let me know if this works for you.
its not working. Could you please provide the sample method code for Override method of checktext and it will be helpful
Thanks in advance.
its working thanks a lot.
Yeah sorry, I thought that would work. The right way is to simply change the Resource strings as if you were localizing it. You can remove the text "Spell Error Found" by replacing it's resource with an empty string.
I tested this using the SpellCheckDialogOpening event. private void UltraSpellChecker1_SpellCheckDialogOpening(object sender, Infragistics.Win.UltraWinSpellChecker.SpellCheckDialogOpeningEventArgs e) { Infragistics.Shared.ResourceCustomizer rc; rc = Infragistics.Win.UltraWinSpellChecker.Resources.Customizer; rc.SetCustomizedString("LS_SpellCheckForm_lbErrorsFound", String.Empty); }
You can always set this back by resetting the customized string.
rrc.ResetCustomizedString("LS_SpellCheckForm_lbErrorsFound");