Hi
I am new to VB and I tried to race three cars(label) and I draw a finishin line .I want my program tell me which car won the race.
**my second question is that I want my all three cars start the race when click the start button.



Private Sub Command1_Click()
Randomize
Label4.Left = 6000
aa = Int((Rnd * 500) + 1)
bb = Int((Rnd * 500) + 1)
cc = Int((Rnd * 500) + 1)
label1.Left = label1.Left + aa
label2.Left = label2.Left + bb
label3.Left = label3.Left + cc
If label1.Left = 5000 Then
Print "blue car won"
If label2.Left = 5000 Then
Print "black car won"
If label3.Left = 5000 Then
Print "yellow car won"
End If
End If
End If
End Sub


thanks if you correct my codes