AD
Administrator
Syncfusion Team
July 24, 2003 03:44 PM UTC
You will need to handle the key down event and examine the word being typed. Below is an example of this matching the case with the items in the keyword list taken from the settings ini file of the edit control:
private void editControl1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
ArrayList list = editControl1.GetKeywordList ("Keyword");
string temp = editControl1.GetWord(editControl1.CurrentLine,editControl1.CurrentChar);
foreach(string str in list)
{
if(temp.ToLower() == str.ToLower())
{
temp = str;
editControl1.Replace(editControl1.GetWordLocationRange(editControl1.CurrentLine,editControl1.CurrentChar),temp);
break;
}
}
}
Regards,
Guru.