I am wanting to load an image into an array. But I keep getting a NULL error?!
I have so far:
Dim b(42) as picturebox
Dim path as bitmap
Dim x as integer
path = New Bitmap(System.Environment.CurrentDirectory & "\blank.png") 'tells it where the blank image is
For x = 1 To 42
b(x).Image = path
Next x
Anyone see what I am doing wrong?
Cheers
Chris
I have so far:
Dim b(42) as picturebox
Dim path as bitmap
Dim x as integer
path = New Bitmap(System.Environment.CurrentDirectory & "\blank.png") 'tells it where the blank image is
For x = 1 To 42
b(x).Image = path
Next x
Anyone see what I am doing wrong?
Cheers
Chris