Visual Basic上的键盘程序 [英] Keyboard Program on Visual Basic

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

问题描述

你好,我正在尝试为我的大学课程创建一个键盘rogram。我必须创建按钮,其中包括所有26个字母和空格,退格和返回按钮。点击后,相应的字母将出现在标签上。字母表中的所有字母都完美地工作,因为要为退格和返回按钮编写什么代码。

hello i am trying to create a keyboard rogram for my college coursework. i had to create the buttons which include all 26 letters of the alphabet and the space, backspace and return buttons. upon click the coresponding letter would appear on a label. All the letters of the alphabet work perfectly im jus stuck on what code to write for the backspace and return buttons to work.

推荐答案

您可以尝试使用vbnewline进行操作返回并将最后一个字符之前的字符串拆分为退格。
You can try try using vbnewline for the return and splitting of the string just before the last character as backspace.


谢谢返回按钮的工作原理,但我如何拆分字符串
thank you the return buttons works, but how do i split the string


中(a,b,c)

a =你的字符串的名字


b = left-split,在你的情况下1,因为你还需要开始你的字符串


c =右分裂,在你的情况下len(a)(字符串的长度)-1(因为你不需要最后一个字符)


毁灭战士
Mid(a,b,c)
a= the name of your string

b= left-split, in your case 1, because you still need the start of your string

c= right-split, in your case len(a) (the length of your string)-1 (because you don''t need the last character)

Yarr Of Doom


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

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