Ascii代码 [英] Ascii Codes

查看:76
本文介绍了Ascii代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,


嘿,我看着每一个人,我不能为我的生活找到这些钥匙的ascii代码:

< b> ctrl (控制按钮,键盘左下角

alt alt按钮,或者空格键的一侧


谢谢大家,即使你链接我的网站的网址将有助于


谢谢再次提前


sgrec7

hi guys,

hey i looked everywere and i can''t for the life of me find the ascii codes for these keys:

ctrl (the control button, bottom left corner of keyboard)

alt (the alt button, either side of the spacebar)

thanks guys, even if you link me the URL for a site that will help

thanks again in advance

sgrec7

推荐答案


嗨伙计们,


嘿,我看着每一个,我不能为我的生活找到这些键的ascii代码:

ctrl 控制按钮,键盘左下角

alt alt按钮,空格键两侧


感谢大家,即使你把一个网站的网址链接起来也会提供帮助


提前再次感谢


sgrec7
hi guys,

hey i looked everywere and i can''t for the life of me find the ascii codes for these keys:

ctrl (the control button, bottom left corner of keyboard)

alt (the alt button, either side of the spacebar)

thanks guys, even if you link me the URL for a site that will help

thanks again in advance

sgrec7



ctrl ---> 17

alt ---> 18


如果你在其他一些控件中写下KeyDown事件,你可以在一个文本框中拥有它


textbox1.text = keycode


然后只需选择那个控件按一下你想知道的键;)

ctrl ---> 17
alt ---> 18

you can have it on a text box if you write in some other controls KeyDown event something like

textbox1.text = keycode

then just select that control an press the key you want to know ;)


这些键不​​是 ASCII码。


ASCII定义字符集的值。这些是键盘键,而不是字符。


KeyDown KeyPress 事件之间的区别在于报告按下的实际键,而另一个则报告由此生成的ASCII字符。例如,按下A按钮。 key生成该密钥的密钥代码(65)。取决于 Caps-Lock 的当前状态, Shift 控制 Alt Shift 键,生成的ASCII字符可能是......
These keys don''t have ASCII codes.

ASCII defines values for the character set. These are keyboard keys, not characters.

The difference between KeyDown and KeyPress events is that one reports the actual key pressed, while the other reports the ASCII character which was generated as a result. For example, pressing the "A" key generates the keycode for that key (65). Depending on the current state of the Caps-Lock, Shift, Control and Alt and Shift keys, the ASCII character generated might be...
" A" (代码 65 ),a (代码 97 ),Ctrl-A (代码 1 )或其他。
"A" (code 65), "a" (code 97), "Ctrl-A" (code 1) or whatever.

这就是Shift,Alt等键不会触发KeyPress事件的原因。

This is why keys such as Shift, Alt and so on do not trigger a KeyPress event.


yea thanks伙计们......


i想在keyprss活动中使用 alt ctrl


它还能用吗???
yea thanks guys...

i want to use alt and ctrl in a keyprss event

will it still work ???


这篇关于Ascii代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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