Design it so that each ball is a single class and create an instance of this
class on a separate thread for each ball that moves around.
Each ball will have properties (size, material that control elasticity for
bouncing, current location, momentum, direction of movement) and will know
how to draw itself in a container (another class).
Kind of basic but should get you started.
"OJ" <OJ@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
It's easy to control one ball (a graphic) to move and bounce inside a
square.
But I don't know how to create and control a large number of balls (10 or
100) and count how many times they hit a wall of the square.
Anyone can help?? I have little experience in VB.net.
Thanks in advance.
OJ