22智能在线
新记
设计一个只接受字母键的文本框,在文本框text1中输入一串字符时,文本框text2中就即
如题所述
举报该文章
其他看法
第1个回答 2016-05-11
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not (Asc("a ") <= KeyAscii And KeyAscii <= Asc("z ") Or _
Asc("A ") <= KeyAscii And KeyAscii <= Asc("Z ")) Then
KeyAscii = 0
End If
Text2.Text = StrReverse(Text1.Text)
End Sub
追问
反序输出会少一个字母
本回答被网友采纳
相似回答
大家正在搜
相关问题
求VB代码。设计一个只接受字母键的文本框,在text1中输入...
设计一个表单,在一个文本框TEXT1中输入字符的同时,输入的...
VB编程问题:程序运行时,在文本框text1中输入1个字符串...
运行表单,在文本框text1中输入一串字符串,单击“统计”命...
一道VB综合应用题 创建一个应用程序,窗体Form1上有2个...
改错!程序运行后,在文本框TEXT1中输入一个字符串,单击命...
VB,在窗体上添加两个文本框text1和text2.要求在文...
在文本框text1中输入字符,要求在文本框text2中自动取...