AnsweredAssumed Answered

Identify Tool - bad GUID #

Question asked by wahrenj on Aug 21, 2012
Latest reply on Aug 22, 2012 by pyurkosk
Hello all,


I just upgraded to Arc 10.  I am in the process of getting my VB Visual Studio 2008 Express compatible with 10.  Everything seems to be working pretty good.  But I have this code which activates the Identify Tool and now it seems the CommandItem variable will not recongnize the GUID # for the Idnetify Tool.  It worked fine with Arc 9.3.1.


pcommandItem.Execute() is working for other commands, just not the Identfy Tool.



'Create a new IdentifyDialog and associate it
        'with the focus map and the map's display
        m_pIdentifyDialog = New IdentifyDialog
        m_pIdentifyDialogProps = m_pIdentifyDialog 'QI
        m_pIdentifyDialog.Map = m_pMxdoc.FocusMap
        m_pIdentifyDialog.Display = m_pActiveView.ScreenDisplay

        'Clear the dialog on each mouse click
        m_pIdentifyDialog.ClearLayers()
        m_pIdentifyDialog.Show()

        'change to Identify tool
        m_pCommandBars = App.Document.CommandBars
        m_pID = New UID
        m_pID.Value = "{B7FA188F-EBE3-11D0-87FE-080009EC732A}"   ' This GUID # does not function
        m_pCommandItem = m_pCommandBars.Find(m_pID)   ' remains set to nothing
        m_pCommandItem.Execute()   ' Error

Any insight would be greatly appriciated,
jw

Outcomes