I want to access an arraylist which contains points. The below example works with option strict off. But how can I do this on the correct way with option strict on? Many thanks in advance!
Option Strict Off
Imports System.Drawing
Module Module2
Sub Main()
Dim ArrayList As New ArrayList
Dim R As New Random
For i = 0 To 9
ArrayList.Add(New Point(R.Next(50), R.Next(50)))
Next i
Dim firstY As Integer = ArrayList(0).Y
Dim firstX As Integer = ArrayList(0).X
End Sub
End Module