打字应用程序 [英] Typing application

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

问题描述




我是VB新手,我创建了一个打字程序,显示按下的字符并在屏幕上突出显示。该程序显示ReadOnly文本框中的字符。我可以编码所有字符,包括退格和回车。我现在面临的唯一问题是如何让shift键显示大写字母?


我尝试用if语句和所有字母的情况来做这件事,但它没有字:(


我知道有人可以提供帮助,我希望他们能够帮助我们.b $ b谢谢你



I''m new to VB , and I''ve created a typing program that displays the character pressed and highlights it on the screen. The program displays the characters on a ReadOnly textbox. I could code all characters including the backspace and the enter. The only problem I''m facing right now is how to make the shift key display capital letters ?

I tryed doing it the hard way with an if statement and then cases of all letters , yet it didn''t word :(

I know someone can help, and I hope they will

thank you

推荐答案

你需要处理KeyDown事件。
You need to handle the KeyDown event.

这就是我对所有字符所做的。我使用TextBox_KeyDown,如何将它用作shift键?
that''s what I did for all characters. I used the TextBox_KeyDown , how can I use it for the shift key?


你好,


在KeyUp或KeyDown中,检查Shift

Hi,

In KeyUp or KeyDown, Check for "Shift"

展开 | 选择 | 换行 | 行号


这篇关于打字应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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