Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to make a label move randomly in a form using a single timer control ?
Posted

1 solution

In the timer tick event[^]
Generate two random longs - Random numbers in VB6[^]
Set the label.Top and label.Left to these numbers.
Hint - you should validate that the numbers represent a position that is visible on your screen/form first.
 
Share this answer
 
Comments
Maciej Los 15-Dec-13 14:23pm    
Short and to the point, +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900