How to dynamically draw a line between two points (C#)?

2298
2
12-22-2011 06:24 AM
Highlighted
New Contributor
In my C# project, I saved all the position information (longitude and latitude) in a database. After loading a default map, I would like to retrieve all these positions and link them with lines. I do not need to save these maps.

Could you please advise what kind of object I can use to draw these lines on a map dynamically?

Thanks!
0 Kudos
2 Replies
Highlighted
New Contributor
I have gotten one solution here: http://forums.esri.com/Thread.asp?c=93&f=993&t=99883

I converted the VB.net codes to C# codes, and the codes work fine to me. However, I am still open to other options.

Thanks!
0 Kudos
Highlighted
New Contributor
Actually the example "Draw text on a MapControl" coming with ArcGIS development kit has a better solution.

http://edndoc.esri.com/arcobjects/9.2/NET/ViewCodePages/F54BEB08-DA6E-475a-8163-92439A754D06DrawText...
0 Kudos