码迷,mamicode.com
首页 > Web开发 > 详细

.net 全角半角

时间:2015-04-29 13:18:17      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

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);
}
}

.net 全角半角

标签:

原文地址:http://www.cnblogs.com/yuanjiehot/p/4465535.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!