Polyline in Windows Form

Sep 30, 2010 at 12:37 PM

How can I make a polyline in a GMap in Windows Forms?

 I try to adapt this code but I fail.

I think that is wpf code....?

 public Path CreateRoutePath(List<System.Windows.Point> localPath)


           // Create a StreamGeometry to use to specify myPath.

           StreamGeometry geometry = new StreamGeometry();

            using (StreamGeometryContext ctx = geometry.Open())


               ctx.BeginFigure(localPath[0], false, false);

                // Draw a line to the next specified point.

               ctx.PolyLineTo(localPath, true, true);



 The error is something like this: Point name or type doesn’t exist in name space…

 Many thanks and best regards

Sep 30, 2010 at 2:25 PM

you need it in windows forms, but you paste wpf code, thats strange ;} ..anyway routes in windows forms version Is polylines already