The Janus EditBox control exposes the text box it uses (which is actually System.Windows.Forms.TextBox) through the .TextBox property, therefore it's simply a case of tieing RapidSpellDialog's TextBoxBasesToCheck property to the .TextBox property in EditBox before launching the checker (for example in a click event handler). //C# private void button1_Click(object sender, System.EventArgs e){ this.rapidSpellDialog1.TextBoxBaseToCheck = this.editBox1.TextBox;this.rapidSpellDialog1.Check();} 'VB.NET Me.rapidSpellDialog1.TextBoxBaseToCheck = Me.editBox1.TextBox Me.rapidSpellDialog1.Check() Complete C# code example using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;namespace WordPad{ /// <summary>/// Summary description for Form1./// </summary>public class Form1 : System.Windows.Forms.Form{ private Janus.Windows.GridEX.EditControls.EditBox editBox1;private Keyoti.RapidSpell.RapidSpellDialog rapidSpellDialog1;private System.Windows.Forms.Button button1;/// <summary>/// Required designer variable./// </summary>private System.ComponentModel.Container components = null;public Form1(){ //// Required for Windows Form Designer support//InitializeComponent(); //// TODO: Add any constructor code after InitializeComponent call//} /// <summary>/// Clean up any resources being used./// </summary>protected override void Dispose( bool disposing ){ if( disposing ){ if(components != null){ components.Dispose(); } } base.Dispose( disposing );} #region Windows Form Designer generated code/// <summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// </summary>private void InitializeComponent(){ this.editBox1 = new Janus.Windows.GridEX.EditControls.EditBox();this.rapidSpellDialog1 = new Keyoti.RapidSpell.RapidSpellDialog();this.button1 = new System.Windows.Forms.Button();this.SuspendLayout();// // editBox1// this.editBox1.AutoScrollMargin = new System.Drawing.Size(0, 0);this.editBox1.AutoScrollMinSize = new System.Drawing.Size(0, 0);this.editBox1.Location = new System.Drawing.Point(0, 0);this.editBox1.Multiline = true;this.editBox1.Name = "editBox1";this.editBox1.Size = new System.Drawing.Size(296, 208);this.editBox1.TabIndex = 1;this.editBox1.Text = "editBox1";this.editBox1.TextAlignment = Janus.Windows.GridEX.TextAlignment.Near;// // rapidSpellDialog1// this.rapidSpellDialog1.AllowMixedCase = false;this.rapidSpellDialog1.AlwaysShowDialog = false;this.rapidSpellDialog1.CheckCompoundWords = false;this.rapidSpellDialog1.ConsiderationRange = 80;this.rapidSpellDialog1.DictFilePath = null;this.rapidSpellDialog1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;this.rapidSpellDialog1.GUILanguage = Keyoti.RapidSpell.LanguageType.ENGLISH;this.rapidSpellDialog1.Icon = null;this.rapidSpellDialog1.IgnoreCapitalizedWords = false;this.rapidSpellDialog1.IgnoreURLsAndEmailAddresses = true;this.rapidSpellDialog1.IgnoreWordsWithDigits = true;this.rapidSpellDialog1.IgnoreXML = false;this.rapidSpellDialog1.IncludeUserDictionaryInSuggestions = false;this.rapidSpellDialog1.LanguageParser = Keyoti.RapidSpell.LanguageType.ENGLISH;this.rapidSpellDialog1.Location = new System.Drawing.Point(300, 200);this.rapidSpellDialog1.LookIntoHyphenatedText = true;this.rapidSpellDialog1.MdiParent = null;this.rapidSpellDialog1.MinimizeBox = true;this.rapidSpellDialog1.Modal = false;this.rapidSpellDialog1.ModalAutoDispose = true;this.rapidSpellDialog1.ModalOwner = null;this.rapidSpellDialog1.Parent = null;this.rapidSpellDialog1.QueryTextBoxMultiline = true;this.rapidSpellDialog1.SeparateHyphenWords = false;this.rapidSpellDialog1.ShowFinishedBoxAtEnd = true;this.rapidSpellDialog1.ShowInTaskbar = false;this.rapidSpellDialog1.SuggestionsMethod = Keyoti.RapidSpell.SuggestionsMethodType.HashingSuggestions;this.rapidSpellDialog1.SuggestSplitWords = true;this.rapidSpellDialog1.TextBoxBaseToCheck = null;this.rapidSpellDialog1.Texts.AddButtonText = "A&dd";this.rapidSpellDialog1.Texts.CancelButtonText = "Canc&el";this.rapidSpellDialog1.Texts.ChangeAllButtonText = "Chan&ge All";this.rapidSpellDialog1.Texts.ChangeButtonText = "&Change";this.rapidSpellDialog1.Texts.CheckCompletePopUpText = "The spelling check is complete.";this.rapidSpellDialog1.Texts.CheckCompletePopUpTitle = "Spelling";this.rapidSpellDialog1.Texts.CheckingSpellingText = "Checking Document...";this.rapidSpellDialog1.Texts.DialogTitleText = "Spelling";this.rapidSpellDialog1.Texts.FindingSuggestionsLabelText = "Finding Suggestions...";this.rapidSpellDialog1.Texts.FindSuggestionsLabelText = "Find Suggestions?";this.rapidSpellDialog1.Texts.FinishedCheckingSelectionPopUpText = "Finished checking selection, would you like to check the rest of the text?";this.rapidSpellDialog1.Texts.FinishedCheckingSelectionPopUpTitle = "Finished Checking Selection";this.rapidSpellDialog1.Texts.IgnoreAllButtonText = "Ignore &All";this.rapidSpellDialog1.Texts.IgnoreButtonText = "&Ignore";this.rapidSpellDialog1.Texts.InDictionaryLabelText = "In Dictionary:";this.rapidSpellDialog1.Texts.NoSuggestionsText = "No Suggestions.";this.rapidSpellDialog1.Texts.NotInDictionaryLabelText = "Not In Dictionary:";this.rapidSpellDialog1.Texts.RemoveDuplicateWordText = "Remove duplicate word";this.rapidSpellDialog1.Texts.ResumeButtonText = "&Resume";this.rapidSpellDialog1.Texts.SuggestionsLabelText = "Suggestions:";this.rapidSpellDialog1.ThirdPartyTextComponentToCheck = null;this.rapidSpellDialog1.TopLevel = true;this.rapidSpellDialog1.TopMost = false;this.rapidSpellDialog1.UserDictionaryFile = null;this.rapidSpellDialog1.V2Parser = true;this.rapidSpellDialog1.WarnDuplicates = true;// // button1// this.button1.Location = new System.Drawing.Point(208, 232);this.button1.Name = "button1";this.button1.TabIndex = 2;this.button1.Text = "Spell Check";this.button1.Click += new System.EventHandler(this.button1_Click);// // Form1// this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);this.ClientSize = new System.Drawing.Size(292, 271);this.Controls.Add(this.button1);this.Controls.Add(this.editBox1);this.Name = "Form1";this.Text = "Form1";this.ResumeLayout(false);} #endregion private void button1_Click(object sender, System.EventArgs e){ this.rapidSpellDialog1.TextBoxBaseToCheck = this.editBox1.TextBox;this.rapidSpellDialog1.Check();} } } |