I'm still using VB6 unfortunetly, but anyway, how would I go about implementing this?
Say I wanted to do something so when you click a button the text in a textbox changes but has a 200-300 millisecond delay so it looks as if the words are changing really fast. But whenever I try to do it, I click the button to test it, and it waits like 4 seconds(freezes), then displays the last word I put for it to display. How do I fix that?
Here's an example:
Option Explicit Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub cmdProduceWords_Click() txtWords.Text = "Hello" Sleep 300 txtWords.Text = "Cookie" Sleep 300 txtWords.Text = "Train" Sleep 300 txtWords.Text = "Cat"
And if I were to click it, it would pause for a while, maybe freeze, then display "Cat".