How to declare a 2D array to store pictures (using picture boxes)
<p>I am designing a Breakout style game for a project that I am currently working on. I have just finished implementing the ball and the paddle and am having some trouble implementing the bricks for the game. I have a picture of a brick that I want to put in the game. For this, as I need a grid of bricks, I was thinking of declaring a 2D array of pictureboxes (so I can assign the picture of the brick) but I have only been able to declare the array. This is the line of code I have: </p>

<pre><code>Dim Bricks(9, 9) As PictureBox
</code></pre>

<p>So, my question is: How do I access each picturebox and assign the image of the brick? and is there a quicker way to do it? Thanks, your help will be very much appreciated. </p>