<?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 How to disable Add-In button after first click in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-disable-add-in-button-after-first-click/m-p/322262#M8380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had just converted one of my VBA button to an Add-In button using C#. When the button is clicked, a form shows up. If user clicks the button twice, the same form will be displayed twice. To avoid that, I would like the button be disabled after user first click the button, and enable the button when the form is closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Add-In, C# and Visual Studio, and could not figure out how to do this. Any help will be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patty&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 16:46:29 GMT</pubDate>
    <dc:creator>XiaopeiZhao</dc:creator>
    <dc:date>2010-11-10T16:46:29Z</dc:date>
    <item>
      <title>How to disable Add-In button after first click</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-disable-add-in-button-after-first-click/m-p/322262#M8380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had just converted one of my VBA button to an Add-In button using C#. When the button is clicked, a form shows up. If user clicks the button twice, the same form will be displayed twice. To avoid that, I would like the button be disabled after user first click the button, and enable the button when the form is closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Add-In, C# and Visual Studio, and could not figure out how to do this. Any help will be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patty&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-disable-add-in-button-after-first-click/m-p/322262#M8380</guid>
      <dc:creator>XiaopeiZhao</dc:creator>
      <dc:date>2010-11-10T16:46:29Z</dc:date>
    </item>
  </channel>
</rss>

