10 Years of Service
15%
Please note, if you want to make a deal with this user, that it is blocked.
[HIDE-THANKS]
TypingEffect(msg As String, time)
- returns none
parameters
msg , the message to be displayed
first create a form, with a textbox and a button
[/HIDE-THANKS]
TypingEffect(msg As String, time)
- returns none
parameters
msg , the message to be displayed
first create a form, with a textbox and a button
Code:
>Sub delay(time)
Start = Timer
Do While Timer - Start < time
DoEvents
Loop
End Sub
Private Sub Command1_Click()
TypingEffect "Hi! Nice chatting with you, my name is Rex.....", _
0.15
End Sub
Private Sub TypingEffect(msg As String, time)
Dim msgLen As Integer
Dim currIndex As Integer
Dim currChar As String
Dim currText As String
msgLen = Len(msg)
Do While currIndex <= msgLen
DoEvents
currIndex = currIndex + 1
currChar = Mid(msg, currIndex, 1)
currText = currText & currChar
Text1.Text = currText
delay time
DoEvents
Loop
End Sub