Hi
Firstly my apologies, this is the second posting on this issue, I need to get to the bottom of this. I am using visual studio 2005 (vb.net) to control a mappoint 2004 activex control. When the user clicks a position the map a pushpin is added and the latitude/longitude is placed onto a record. This works really well until the user clicks on a location where there is underlying information, this causes mappoint to pop a dialog with the location information. The suggested fix is to cancel the pop up on the beforedouble click event on the active x control I have attempted to do this with no success. I have included the opening lines of the code below; can anyone give me the definitive answer to this problem?
Any help appreciated
Joe
Code:
Private Sub AxMappointControl1_BeforeDblClick(ByVal sender As System.Object, ByVal e As AxMapPoint._IMappointCtrlEvents_BeforeDblClickEven t) Handles AxMappointControl1.BeforeDblClick
Try
e.cancel = True ‘should I be sending cancel some other way
Dim objMap As MapPoint.Map
objMap = Me.AxMappointControl1.ActiveMap
Dim objDataSet As MapPoint.DataSet
Dim txt1, txt2, txt0, txt4 As String
Dim Ilat, Ilong As Double
Dim objResult As Object
Dim objResults As MapPoint.FindResults
objResults = objMap.ObjectsFromPoint(e.x, e.y)