Ok in my practice game I am making I am trying to load all the rectangles I've created on Form into an array
I started with
Dim recWalls(9) as Array
Now all my rectangles I've named R1, R2, R3 and so on.
Private Sub gameWindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
recWall(0) = R1
End Sub
I get an error saying
Value of type 'System.Drawing.Point' cannot be converted to 'System.Drawing.Rectangle'.
I started with
Dim recWalls(9) as Array
Now all my rectangles I've named R1, R2, R3 and so on.
Private Sub gameWindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
recWall(0) = R1
End Sub
I get an error saying
Value of type 'System.Drawing.Point' cannot be converted to 'System.Drawing.Rectangle'.