The error I'm getting is "System.NullReferenceException: 'Object reference not set to an instance of an object.'" This is at the line where I try to set the image as a bitmap. I've tried changing the location of the image multiple times and still doesn't help.
Dim monkeys(4) As PictureBox
For i = 0 To 4
monkeys(i).Image = New Bitmap("H:\Monkey Casino\Monkey Casino\bin\Debug\monkey.bmp")
monkeys(i).Width = 92
monkeys(i).Height = 102
monkeys(i).Top = 579
monkeys(i).BackColor = Color.Transparent
Next
monkeys(1).Left = 48
monkeys(2).Left = 237
monkeys(3).Left = 425
monkeys(4).Left = 609
monkeys(5).Left = 793