Add this class to the projectusing System;
using System.Text;
using Keyoti.RapidSpell;
using System.Windows.Forms;
namespace Main
{
public class ComboBoxISpellCheckableWrapper : ISpellCheckableTextComponent
{
ComboBox comboBox;
public ComboBoxISpellCheckableWrapper(ComboBox cb)
{
comboBox = cb;
comboBox.GotFocus += new EventHandler(comboBox_GotFocus);
comboBox.Disposed += new EventHandler(comboBox_Disposed);
}
void comboBox_Disposed(object sender, EventArgs e)
{
comboBox.GotFocus -= new EventHandler(comboBox_GotFocus);
comboBox.Disposed -= new EventHandler(comboBox_Disposed);
if (Disposed != null) Disposed(this, e);
}
void comboBox_GotFocus(object sender, EventArgs e)
{
if (GotFocus != null) GotFocus(this, e);
}
public void Dispose()
{
comboBox.Dispose();
}
public event EventHandler Disposed;
public bool Enabled
{
get { return comboBox.Enabled; }
}
public event EventHandler GotFocus;
public bool HideSelection
{
get
{
return false;
}
set
{
//cant map
}
}
public bool ReadOnly
{
get { return false; }
}
public void ScrollToCaret()
{
}
public string SelectedText
{
get
{
return comboBox.SelectedText;
}
set
{
comboBox.SelectedText = value;
}
}
public int SelectionLength
{
get
{
return comboBox.SelectionLength;
}
set
{
comboBox.SelectionLength = value;
}
}
public int SelectionStart
{
get
{
return comboBox.SelectionStart;
}
set
{
comboBox.SelectionStart = value;
}
}
public string Text
{
get
{
return comboBox.Text;
}
set
{
comboBox.Text=value;
}
}
}
}