.net 键盘

private void txtGoodsGroup_KeyPress(object sender, KeyPressEventArgs e)
{
base.OnKeyPress(e);
if ((int)e.KeyChar >= 65296 && (int)e.KeyChar <= 65305)
{
e.KeyChar = (char)((int)e.KeyChar - 65248);
}
}

 

回车

e.KeyChar == 13

posted @ 2015-04-29 11:43  嘿嘿v8v  阅读(426)  评论(0编辑  收藏  举报