IIdentifyDialog shows up old identify window

09-09-2015 09:15 PM
New Contributor

Dear friends

       i have developed ArcMap desktop tool  which overrides existing (using sample code)Arcmap identify tool where  some layers excluded for displaying information.The code works fine without any error but the issue is  old identify window shows up which does not have  sorting and other options in the window.Kindly help me for this issue.

Public Sub DoIdentify(ByVal x As System.Int32, ByVal y As System.Int32)

        Dim pMxdoc As IMxDocument

        Dim activeView As IActiveView

        Dim trackCancel As ITrackCancel = New CancelTrackerClass()

        pMxdoc = m_application.Document

        activeView = pMxdoc.ActiveView

        If activeView Is Nothing Then


        End If

        Dim map As IMap = activeView.FocusMap

        Dim identifyDialog As IIdentifyDialog = New IdentifyDialog

        identifyDialog.Map = map

        'Clear the dialog on each mouse click


        Dim screenDisplay As ESRI.ArcGIS.Display.IScreenDisplay = activeView.ScreenDisplay

        Dim display As ESRI.ArcGIS.Display.IDisplay = screenDisplay ' Implicit Cast

        identifyDialog.Display = display

        Dim identifyDialogProps As IIdentifyDialogProps = CType(identifyDialog, IIdentifyDialogProps) ' Explicit Cast

        Dim enumLayer As ESRI.ArcGIS.Carto.IEnumLayer = identifyDialogProps.Layers


        Dim layer As ESRI.ArcGIS.Carto.ILayer = enumLayer.Next


        Do While Not (layer Is Nothing)

            If CheckLayerCantainsInLayerList(layer) = False Then

                identifyDialog.AddLayerIdentifyPoint(layer, x, y)

            End If

            layer = enumLayer.Next()



    End Sub

0 Kudos
0 Replies