VB.NET Image Control Array
Posted on 2004-11-17
I have been sitting in front of my PC for about 12 hours trying to figure out this problem so I think it is time for some help.
I am trying to design a simple game that moves a series of images across the screen using a control array. The direction of the moving images is dependant on whether the user clicks the right or left command button.
The program starts with a static image on the left hand side of the screen and when the user clicks the 'Right' button it should start moving in that direction, cycling through 6 images until it reaches the other side of the screen.
I have got it so it displays the starting image on the left side of the screen, but when I click the 'Right' button it comes up with an error:
Object variable With block variable not set
I haven't got a clue what this means and once it has given me the error message it starts to move the static image across the screen, but it does not cycle through them.
I am very confused and frustrated with this whole thing and don't think I have explained it very well but please help.
Thanks in advance,