Hi
I am using the SpellcheckDialog to launch the spellchecker i need to show the user by highlighting the text before the user click to change in the Spell check dialog to correct the word, as i am using Rich text box the control moves back and forth so that user doesn't know which word they corrected and where is the control.
please help me in achieving this at the earliest.
Thanks
Srivasta S
Hello Srivasta,
Please try the following code sample:
private void ultraSpellChecker1_WordCorrected(object sender, Infragistics.Win.UltraWinSpellChecker.WordCorrectedEventArgs e) { richTextBox1.SelectionStart = richTextBox1.Find(e.CorrectedWord); richTextBox1.SelectionLength = e.CorrectedWord.Length; this.Focus(); richTextBox1.Focus(); }
Please feel free to let me know if I misunderstood you or if you have any other questions.
My problem is highlighting the current word which is being spellchecked by the dialog
i need to highlight the current word i am doing as below by looping all the texboxes in my form and opening the dialog as below
UltraSpellChecker ultraSpellChecker = New UltraSpellChecker ();
foreach (Group grpctrl in this.noteInputTemplate.Groups) { foreach (Control noteform in grpctrl.Controls) { if (noteform is Note.Controls.TWNoteForm) { foreach (Control NewTxtctrl in noteform.Controls) { if (NewTxtctrl is Note.Controls.RichTextBox || NewTxtctrl is TextBox) { ultraSpellChecker.ShowSpellCheckDialog(NewTxtctrl); } } } } }
from the above code i will open a dialog with a textbox and i need to highlight the original word before i change to corrected word ,is there any option for acheving this, please let me know for any further clarifications.
regards
I understand now. I believe that beside my sample this is not possible at the moment with our control. I could log a new product idea for you, do you want me to?
Hi I think yes for your question if we had a event like UltraSpellChecker_Before_WordCorrected it will help user to highlight or do any workflows.
Srivasta
Hi,
After some research, the "Support of 'BeforeWordCorrected' event" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI13010065.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.