View Single Post

  #2 (permalink)  
Old 12-21-2004
John Meyer's Avatar
John Meyer John Meyer is offline
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Hope this sample helps you.

Code:
Dim objmap As MapPointCtl.Map
Set objmap = MappointControl1.ActiveMap
Dim ashape As MapPointCtl.Shape
Dim aLocation1 As MapPointCtl.Location
Dim aLocation2 As MapPointCtl.Location

Set aLocation1 = objmap.FindResults("New York, NY").Item(1)
Set aLocation2 = objmap.FindResults("Atlanta, GA").Item(1)
Set ashape = objmap.Shapes.AddLine(aLocation1, aLocation2)
ashape.Line.Weight = 1
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Reply With Quote