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
thanks kim, i'll do that instead
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~