<?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 Hiding an old VB6 ICommand via another Addin Command using .NET C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/hiding-an-old-vb6-icommand-via-another-addin/m-p/120729#M3163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing some issues while trying to disable an old ICommand button written in VB6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to make changes to VB6 code as it requires new release of whole solution which contains many other tools and commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence, I have created new functionality and just want to disable one old Command button; but as per my findings even if I load this old CommandItem I can't disable it as the ".Enabled" property has no setter through COmmandItem. That's logical as well; because there is a class in VB6 which has implemented ICommand and you can't access its Enabled property form outside as there is no setter in that class for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me if there is any way to hide or disable the old command button Or replace it with my new .NET code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2014 12:13:18 GMT</pubDate>
    <dc:creator>GauravGrigo</dc:creator>
    <dc:date>2014-04-21T12:13:18Z</dc:date>
    <item>
      <title>Hiding an old VB6 ICommand via another Addin Command using .NET C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hiding-an-old-vb6-icommand-via-another-addin/m-p/120729#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing some issues while trying to disable an old ICommand button written in VB6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to make changes to VB6 code as it requires new release of whole solution which contains many other tools and commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence, I have created new functionality and just want to disable one old Command button; but as per my findings even if I load this old CommandItem I can't disable it as the ".Enabled" property has no setter through COmmandItem. That's logical as well; because there is a class in VB6 which has implemented ICommand and you can't access its Enabled property form outside as there is no setter in that class for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me if there is any way to hide or disable the old command button Or replace it with my new .NET code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 12:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hiding-an-old-vb6-icommand-via-another-addin/m-p/120729#M3163</guid>
      <dc:creator>GauravGrigo</dc:creator>
      <dc:date>2014-04-21T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding an old VB6 ICommand via another Addin Command using .NET C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hiding-an-old-vb6-icommand-via-another-addin/m-p/120730#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, your tool is part of a larger set and you want to replace it with a newer version that will be installed separately?&amp;nbsp; One solution would be to remove the tool's entry in the ESRI Mx Commands component category.&amp;nbsp; You would do this in your new tool's installer.&amp;nbsp; However, I'm not sure exactly how that would affect things.&amp;nbsp; Are your tools on a toolbar that you define via IToolbarDef?&amp;nbsp; If so, you could write an extension that installs along with your new tool.&amp;nbsp; Wire the extension to listen for the NewDocument and OpenDocument events.&amp;nbsp; Inside these events, get a reference to the toolbar, remove the old tool and add your new tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 18:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hiding-an-old-vb6-icommand-via-another-addin/m-p/120730#M3164</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2014-04-21T18:47:42Z</dc:date>
    </item>
  </channel>
</rss>

