My code is as follows:
void gkh_KeyUp(Object sender, KeyEventArgs e)
{
if (char.IsLetterOrDigit((char) e.KeyCode))
{
word += e.KeyCode.ToString().ToLower();
if (dictionary.SmileyCheck(word))
{
SendKeys.Send(dictionary.GetConversion(word));
word = "";
}
}
else if (e.KeyCode == Keys.Space || e.KeyCode == Keys.Enter)
{
word = "";
}
else if (e.KeyCode == Keys.Back)
{
if (word.Length > 0)
word = word.Remove(word.Length - 1);
}
}
If I was to augment "pie" after I type "apple" I would get:
apple pie
applE pie
apple PIE (This last line should read "apple pie")
Thanks for reading my question

New Topic/Question
Reply




MultiQuote




|