Hi Thomaz,
You can check for \t (tab) and \r (enter) instead of numeric values. This:
Code:
if (e.KeyChar == '\t' || e.KeyChar == '\r')
{
MessageBox.Show("Tab or Enter pressed");
}
should do the trick.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.