Hi please somone help me. I need to generate three random numbers and display them in a label when a button is clicked. However the numbers must keep changing for three seconds and then stop. You must see them change in the label. I use this code to generate the numbers randomly.
Dim num1, num2, num3 As Integer
num1 = Int(9 * Rnd() + 0)
num2 = Int(9 * Rnd() + 0)
num3 = Int(9 * Rnd() + 0)
Me.label1.Text = num1
Me.label2.Text = num2
Me.label3.Text = num3
when i put this code under the button click event it only happens once. When i put it in the timers tick event they only change every three seconds. Please someone tell me how to keep changing the numbers for three seconds and then stop. I've tried everything and am ready to bang my head into the wall.
Dim num1, num2, num3 As Integer
num1 = Int(9 * Rnd() + 0)
num2 = Int(9 * Rnd() + 0)
num3 = Int(9 * Rnd() + 0)
Me.label1.Text = num1
Me.label2.Text = num2
Me.label3.Text = num3
when i put this code under the button click event it only happens once. When i put it in the timers tick event they only change every three seconds. Please someone tell me how to keep changing the numbers for three seconds and then stop. I've tried everything and am ready to bang my head into the wall.