Knowledgebase Home Page  >  RapidSpell Desktop .NET  >  3rd Party Ctrls
Search the Knowledge Base
Is it possible to use RapidSpellAsYouType with Janus's EditBox control?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=59&catId=61

Options

Print this page
Email this to a friend
By simply subclassing the EditBox control, and overriding the DefaultEditControl property it is possible to return a Keyoti.RapidSpell.AYTTextBox instead of a regular TextBox.
 
Eg. (for VB.NET code see attached)
 

using System;

using System.Windows.Forms;

namespace Keyoti.RapidSpell.JanusEditBox

{

/// <summary>

/// Summary description for AYTEditBox.

/// </summary>

public class AYTEditBox : Janus.Windows.GridEX.EditControls.EditBox

{

protected override TextBox DefaultEditControl

{

get

{

return new Keyoti.RapidSpell.AYTTextBox();

}

}

}

}

 

This can then be used fairly easily.

 

this.rapidSpellAsYouType1.TextComponent = (Keyoti.RapidSpell.AYTTextBox)this.editBox1.TextBox;

 

The attached project demonstrates this in C# and VB.NET code.


Related Questions:

Attachments: