Try this, for a 2-dimensional array:
Public Sub test()
Dim mg(,) As Integer = {{2, 2}, {2, 3}, {2, 4}, {2, 5}, {2, 6}}
Dim pt As System.Drawing.Point = New System.Drawing.Point(2, 3)
If mg(1, 0) = pt.X And mg(1, 1) = pt.Y Then 'Checking to see if mg(1) and pt are equal
Debug.Print("pt and mg are equal")
End If
End Sub