日语字符的KeyPress或KeyDown事件 [英] KeyPress or KeyDown event for Japanese character

查看:78
本文介绍了日语字符的KeyPress或KeyDown事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过在KeyPress或KeyDown事件中处理日语字符来避免日语字符输入.日语Keychar的在线特定代码段是否可用.我应该避免用户在富文本框中输入日语字符,所以只想知道Keychar和用于处理它的代码.

请帮忙.

预先感谢

How to avoid Japanese character input by handling it in a KeyPress or KeyDown event. Is there any specific code snippet available online for the Japanese Keychar. I should avoid user entering Japanese character in a rich text box, so just want to know the Keychar and code for handling it.

Pls do assist.

Thanks in advance

推荐答案

我假设您已经设法检测到按键按下事件,所以这里是您必须搜索的ASCII值:
http://msdn.microsoft.com/en-us/library/ms404377.aspx [ ^ ]
I assume that you have already manage to detect the key down event, so here is the ASCII vaules you''ll have to search for:
http://msdn.microsoft.com/en-us/library/ms404377.aspx[^]


这篇关于日语字符的KeyPress或KeyDown事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆