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
130
stop spell check dialog from firing
posted

i have a simple form with an ultraspellcheck control tied to a an ultraformattedtexteditor control.

the form also has save and cancel buttons

everything works fine except i can't seem to work out how to stop the spellcheck dialog from firing when the user presses the cancel button

Parents
  • 5389
    Verified Answer
    posted

    Chris,

    What you can do, instead of hooking up the UltraSpellChecker to your UltraFormattedTextEditor by setting the UltraFormattedTextEditor's SpellChecker property, is leave the two controls separate, and in your Save button click event show the UltraSpellChecker for the UltraFormattedTextEditor.  To do this the code would look something like:

            private void ultraButton2_Click(object sender, EventArgs e)
            {
                this.ultraSpellChecker1.ShowSpellCheckDialog(this.ultraFormattedTextEditor1);
                this.ultraSpellChecker1.ShowSpellCheckDialog(this.ultraTextEditor2);
            }

    Note you will have to call ShowSpellCheckDialog for each control you want to spell check on your form.  Also note that if the text in ultraFormattedTextEditor1 is correct, the dialog will not open.

    Hope this helps,

    ~Kim~

Reply Children
No Data