Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27511

Issue with Arrays

$
0
0
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'.

Viewing all articles
Browse latest Browse all 27511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>