我要练习打26个字母的很简单的vb打字练习程序,就跟金山打字通的字母练习差不多的

 我来答
lnzzxzy
2011-09-27 · TA获得超过8128个赞
知道小有建树答主
回答量:1316
采纳率:80%
帮助的人:759万
展开全部
VERSION 5.00
Begin VB.Form Form1
Caption = "英文打字"
ClientHeight = 8295
ClientLeft = 60
ClientTop = 450
ClientWidth = 7815
LinkTopic = "Form1"
ScaleHeight = 8295
ScaleWidth = 7815
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 855
Left = 2160
TabIndex = 3
Top = 4680
Width = 2775
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 42
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1230
Left = 3480
TabIndex = 1
Text = "Text1"
Top = 1560
Width = 2895
End
Begin VB.Label Label3
Caption = "得分:"
BeginProperty Font
Name = "宋体"
Size = 36
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 840
TabIndex = 4
Top = 240
Width = 2175
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Label2"
BeginProperty Font
Name = "宋体"
Size = 36
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 720
Left = 3240
TabIndex = 2
Top = 300
Width = 2760
End
Begin VB.Label Label1
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 1095
Left = 480
TabIndex = 0
Top = 1628
Width = 2895
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Trim(Label1) = Trim(Text1) Then Label2 = Label2 + 5

Label1 = Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25)
Text1 = ""
End Sub

Private Sub Form_Load()
Randomize (Second(Now()))
Label2 = "0"
Label1 = Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25) & Chr(Asc("A") + Rnd(1) * 25)
Text1 = ""
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Or Len(Text1) = 5 Then Call Command1_Click
Text1 = Trim(Text1 & UCase$(Chr(KeyAscii)))
KeyAscii = 0
End Sub
'将以上内容保存为 form1.frm 用VB打开就可以
更多追问追答
追问
能把这个程序打包发给我吗,我的邮箱是2207049080@qq.com
追答
能把这个程序打包发给我吗,我的邮箱是2207049080@qq.com
晕,你这个邮箱 收不了邮件!!!!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
天翔【枫叶】9162dd
2011-09-27 · TA获得超过417个赞
知道小有建树答主
回答量:408
采纳率:0%
帮助的人:261万
展开全部
怎么时不时就有人要这种东西………………
学VB的,居然连这个还要例子,要多下功夫啊,o(︶︿︶)o 唉。
留个邮箱,我做个最简单的给你~~~
追问
我的邮箱是2207049080@qq.com
谢谢
来自:求助得到的回答
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
荒木废墟
2011-09-29 · TA获得超过692个赞
知道小有建树答主
回答量:753
采纳率:0%
帮助的人:379万
展开全部
什么?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式