So, I have an array of picture boxes
Dim LocationArray(8,6) As PictureBox
I have set the array to pictures boxes as so
ArrayLocation(0,0)=pic00
ArrayLocation(0,1)=pic01
ect.
So, when the form loads, I want the picture box (3,0) to load with a picture in it
So far I have
LocationArray(3,0).Image = My.Recources.pic
And nothing happens when I load the form.
When I try to display a picture after changing which the coordinates of the array, I get a NullreferenceExepecation error. How will I be able to fix this, the code I have so far is,
Static xAxis As Integer = 3
Static yAxis As Integer = 0
LocationArray(xAxis, yAxis).Visible = False
xAxis = +1
LocationArray(xAxis, yAxis).Image = My.Resources.man
LocationArray(yAxis, xAxis).Visible = True