imagebox collection problem

turtleman

Newcomer
Joined
Dec 5, 2003
Messages
3
I have created a collection of pictureboxes like the following:

Dim ImgCollection As New Collection
ImgCollection.Add(imgDealer1)
ImgCollection.Add(imgDealer2)
ImgCollection.Add(imgDealer3)
ImgCollection.Add(imgDealer4)
ImgCollection.Add(imgDealer5)
ImgCollection.Add(imgPlayer1)
ImgCollection.Add(imgPlayer2)
ImgCollection.Add(imgPlayer3)
ImgCollection.Add(imgPlayer4)
ImgCollection.Add(imgPlayer5)

Basically, I want to clear each image box but I can't figure out how to program the code to do so.
 
I've decided to just use a control array.

thanks for the help, though I was trying to figure out how to do it with a control collection
 
Back
Top