i'm trying to use Vertices of shape drawen by user for later use.
The problem is that i cant get the vertices content.
here is a sample of my code:
Dim iShape As MapPoint.Shape
iShape = Me.MPCtl.ActiveMap.Shapes.Item(1)
Dim MyMap As MapPoint.Map
MyMap = Me.MPCtl.ActiveMap
Dim MyLoc() As MapPoint.Location
MyLoc = CType(iShape.Vertices, MapPoint.Location())
(i'm using VB.Net with an activeX of MapPoint)
now, the last line is doing my headache... the compiler saids it cant do the casting... BUT vertices is a collection of locations, isn't it ?
another by the way question is - why do i need to do all those castings every where ? (i mean when using findresults, etc.) - i cant (dont want to) put the option explicit off ...
thaks a lot,