<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284138#M7328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Genaro,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully someone can spot the obvious issue and provide a quick solution.&amp;nbsp; Something else that I didn't mention previously is to consider placing your Toolbar items/controls onto a UserControl instead then hook the IApplication to this.&amp;nbsp; It also makes the IToolBarDef class much cleaner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the ICommand class pretty much stays the same, except the OnCreate method creates a new instance of the UserControl, as well as passing the IApplication to it as mentioned above.&amp;nbsp; I remember moving to this approach because I was having issues with my Toolbar drawing funny and Neil made the suggestion to add a Panel to the UC and then add the controls to the Panel -- which this Panel could then be refreshed, removing my drawing funny issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've stuck with this approach ever since.&amp;nbsp; Although I am not totally certain how much different other techniques (ESRI samples) differ.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 12:24:08 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2011-10-12T12:24:08Z</dc:date>
    <item>
      <title>Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284135#M7325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Genaro Garcia&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm in the process of converting all my ArcGIS 9.3 desktop toolbars/tools to ArcGIS 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have&amp;nbsp; gone thru the "How to ensure that COM component category and COM interop are used in custom components" online documents. Which I implemented into code below.&amp;nbsp; I also create an "SetUP" project, build solution, and installed the app using the MSI file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I started ArcMap 10, but the toolbars with the tools don't show up available toolbars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached file for code review.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Genaro Garcia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The City of Oklahoma City&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="mailto:Genaro.Garcia@okc.gov"&gt;Genaro.Garcia@okc.gov&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;(405) 297-3172&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 20:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284135#M7325</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-10-10T20:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284136#M7326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm in the process of converting all my ArcGIS 9.3 desktop toolbars/tools to ArcGIS 10.&lt;BR /&gt;I have&amp;nbsp; gone thru the "How to ensure that COM component category and COM interop are used in custom components" online documents. Which I implemented into code below.&amp;nbsp; I also create an "SetUP" project, build solution, and installed the app using the MSI file.&lt;BR /&gt;&lt;BR /&gt;I started ArcMap 10, but the toolbars with the tools don't show up available toolbars.&lt;BR /&gt;&lt;BR /&gt;See attached file for code review.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Genaro Garcia&lt;BR /&gt;The City of Oklahoma City&lt;BR /&gt;&lt;A href="mailto:Genaro.Garcia@okc.gov"&gt;Genaro.Garcia@okc.gov&lt;/A&gt;&lt;BR /&gt;(405) 297-3172&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try manually registering by clicking Customize--&amp;gt;CustomizeMode--&amp;gt;AddFromFile then navigate to the directory where your Setup installed the component and locate the .tlb file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do your tools/toolbar load?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, then it could be something simple you are missing in your registration code process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284136#M7326</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-10-11T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284137#M7327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Genaro Garcia&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking about doing that, but wasn't sure about uninstalling any of the toolbar/tools that load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did use the .tlb to load them.&amp;nbsp; The toolbar didn't load, but all the tools did.&amp;nbsp; See attached file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point, I know that it's something within the toolbar�??s registration code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the advice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Genaro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 12:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284137#M7327</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-10-12T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284138#M7328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Genaro,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully someone can spot the obvious issue and provide a quick solution.&amp;nbsp; Something else that I didn't mention previously is to consider placing your Toolbar items/controls onto a UserControl instead then hook the IApplication to this.&amp;nbsp; It also makes the IToolBarDef class much cleaner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the ICommand class pretty much stays the same, except the OnCreate method creates a new instance of the UserControl, as well as passing the IApplication to it as mentioned above.&amp;nbsp; I remember moving to this approach because I was having issues with my Toolbar drawing funny and Neil made the suggestion to add a Panel to the UC and then add the controls to the Panel -- which this Panel could then be refreshed, removing my drawing funny issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've stuck with this approach ever since.&amp;nbsp; Although I am not totally certain how much different other techniques (ESRI samples) differ.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 12:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284138#M7328</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-10-12T12:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ArcGIS 9.3 Toolbar/Tools Conversion to ArcGIS 10 problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284139#M7329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Genaro Garcia&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm finally back to this project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I rewrote the whole toolbar &amp;amp; tools using ArcGIS 10 Extending ArcObjects templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added all the self-registration code on the tool and toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added the bmp file for the tools and code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what I have now is a custom toolbar and 3 custom tools that self-register within one project using MS Visual Studio 2010.&amp;nbsp; And Yes, I'm using MS .Net Framework 3.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I build it, it only displays the toolbar without any tools.&amp;nbsp; I seem that it only created to toolbar and registered it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something that I'm missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to tell it to build and register the tools also?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 20:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-arcgis-9-3-toolbar-tools-conversion-to/m-p/284139#M7329</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-11-03T20:16:58Z</dc:date>
    </item>
  </channel>
</rss>

