Example #1
0
        private void butSpellCheck_Click(object sender, EventArgs e)
        {
            FormSpellChecker FormSC = new FormSpellChecker();

            FormSC.SetText(textDescription.Rtf);
            FormSC.ShowDialog();
            if (FormSC.DialogResult != DialogResult.OK)
            {
                return;
            }
            textDescription.Rtf = FormSC.TextRtf;
            textDescription.Focus();
        }
Example #2
0
        private void butSpellCheck_Click(object sender, EventArgs e)
        {
            if (_textFocused.ReadOnly)
            {
                return;
            }
            FormSpellChecker FormSC = new FormSpellChecker();

            FormSC.SetText(_textFocused.Rtf);
            FormSC.ShowDialog();
            if (FormSC.DialogResult != DialogResult.OK)
            {
                return;
            }
            _textFocused.Rtf = FormSC.TextRtf;
            _textFocused.Focus();
        }