Select to view content in your preferred language

Identify Tool - bad GUID #

2752
3
Jump to solution
08-21-2012 01:50 PM
JohnWahren
Occasional Contributor
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
0 Kudos
1 Solution

Accepted Solutions
PeterYurkosky1
Regular Contributor
Identify changed a bit at 10.0. Try {CF605583-AEA3-41D8-9464-DDD1905243D9} (esriControls.ControlsMapIdentifyTool).

View solution in original post

0 Kudos
3 Replies
PeterYurkosky1
Regular Contributor
Identify changed a bit at 10.0. Try {CF605583-AEA3-41D8-9464-DDD1905243D9} (esriControls.ControlsMapIdentifyTool).
0 Kudos
JohnWahren
Occasional Contributor
New GUID worked!

Where are the new GUID's documneted?

Thank you for your response!

jw
0 Kudos
PeterYurkosky1
Regular Contributor
Just look up the ControlsMapIdentifyTool class in esriControls. I'm not sure how well-documented the GUID switch was.
0 Kudos