如何打印在C#中输入的密钥的ASCII码? [英] How to print the ASCII code of a key entered in C# ?
本文介绍了如何打印在C#中输入的密钥的ASCII码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C#中打印从键盘输入的键的ASCII码?
解决方案
您可以使用简单的 Google [ ^ ]搜索。
如果你想把结果放到文本框中你可以做类似的事情
TextBox1 .Text = System.Convert.ToInt32(' g');
只需替换你想要的字符。
检查以下链接: -
http: //www.softwareandfinance.com/CSharp/PrintASCII.html [ ^ ]
How to print the ASCII code of a key entered from keyboard in C# ?
解决方案
You could solve this easily with a simple Google[^] search.
If you want to put the results into textbox you could do something like
TextBox1.Text = System.Convert.ToInt32('g');
Just substitute the character that you want.
Check Below Link:--
http://www.softwareandfinance.com/CSharp/PrintASCII.html[^]
这篇关于如何打印在C#中输入的密钥的ASCII码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文