Hi
I am using the Spellcheckdialog for multiple textboxes in the Form. i am looping through all the controls in the form using foreach loop and pushing the each control to launch the Spellcheckdialog to do the spellcheck one by one as i want to postion the dialog in one place so that user don't want to see the flickering in the dialog.
please help me in resolving this.
Thanks
Srivasta S
Hello,
In order to position the SpellCheckerDialog you should use code like:
void ultraSpellChecker1_SpellCheckDialogOpening(object sender, Infragistics.Win.UltraWinSpellChecker.SpellCheckDialogOpeningEventArgs e)
{
e.SpellCheckDialog.StartPosition = FormStartPosition.Manual;
e.SpellCheckDialog.SetDesktopLocation(this.Location.X, this.Location.Y);
}
Please let me know if you have any further questions.
Thanks for the Answer it works :) in one place but my problem is Dialog is flickeing, explained below ----------->
My scenario is i have more than 20 textboxes in one form,
when the user click on Spellcheck button
all the textboxes should do the spellcheck in the form at once, so for that i am doing 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); } } } } }
by doing this spellcheck diolog opens and closes many times so lots of flickering will be there, can you please suggest me a better idea to do this. or
Is there any way that i can open a Spellcheck dialog once for all Textboxes to Spellcheck without closing the Dialog and reopening.
Regards
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.