I'm using the following to call calcpos to try and grab the long and lat of an address
But aparently using objloc in that manner is an invalid cast :s any help on this would be greatly appreciatedCode:Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim objmap As MapPoint.Map Dim objLoc As MapPoint.Location Dim lat, lon As Double objmap = AxMappointControl1.ActiveMap objLoc = objmap.FindAddressResults("Moss Lane", "Bolton", "", "", "BL1", "England") CalcPos(objmap, objLoc, lat, lon) End Sub
Cheers
M