使用VB6替换文本框按键事件中的字符 [英] replace character in textbox keypress event using vb6

查看:130
本文介绍了使用VB6替换文本框按键事件中的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我如何使用vb6替换文本框按键事件中的字符.就像我在键盘上按A然后自动
显示的文本框"L"未在文本框中显示.请快速回答我.

Hi,
How can i replace character in textbox keypress event using vb6. Like when i press in keyboard a then automatically
displayed text box "L" not displayed a in textbox. Please answer me quickly.

推荐答案

您可以执行以下操作,这只是示例代码,您可以在上面做更多的事情.

You can do as below, it is a just sample code, you can do more stuff on it.

Private Sub Text1_KeyPress(KeyAscii As Integer)
    KeyAscii = KeyAscii + 11
End Sub


这篇关于使用VB6替换文本框按键事件中的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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