添加一个text控件,MultiLine属性设为True
添加一个timer控件
添加一个Label控件
代码:
Private Sub Form_Load()
Text1.Text = ""
Timer1.Interval = 100
Label1.Caption = 0
End Sub
Private Sub Text1_Change()
If Len(Text1.Text) = 100 Then
Timer1.Enabled = False
Label1.Caption = "每" & Label1.Caption & "秒100字"
End If
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Label1.Caption + 0.1
End Sub
这个很简单吧,稍微看看就会了啊
不能