AnsweredAssumed Answered

How to use COM UI components in Visual Studio 2010 for ArcMap 10 extension?

Question asked by huangs3 on Jul 12, 2012
Latest reply on Jul 12, 2012 by geonetadmin
Hi Everybody:

    I am trying to use some UI components provided by ArcObjects 10 in my ArcMap 10 Extension developed under Visual Studio 2010, but was not successful. Following are the steps I did. Can you help me to see how should I make it work? Thank you!

1. Create an ArcMap extension with a draggable window.

2. In Visual Studio 2010, make a COM component UI tool available. In this test I chose MdListCtrl Class
[ATTACH=CONFIG]16017[/ATTACH]

3. Then drag and drop a MdListCtrl on to draggable window.
[ATTACH=CONFIG]16018[/ATTACH]

4. After compiling, I get two error messages.
[ATTACH=CONFIG]16019[/ATTACH]

5. An esriSearch reference is found. It is actually refering to ESRI.ArcGIS.System, which is already referred. I then deleted the esriSearch reference.
[ATTACH=CONFIG]16020[/ATTACH]

6. After compiling an error on resource file is found.
[ATTACH=CONFIG]16021[/ATTACH]


Is there anyway I can make it work?

Thank you!

Outcomes