<?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: Add-in Tool onClick or onSelect? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561873#M15154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Answered my own question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sup is OnActivate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 21:52:59 GMT</pubDate>
    <dc:creator>JohnBarnes</dc:creator>
    <dc:date>2012-09-07T21:52:59Z</dc:date>
    <item>
      <title>Add-in Tool onClick or onSelect?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561870#M15151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm in the process of converting my custom ArcGIS Desktop projects from VBA to .Net.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a few Add-in Tools.&amp;nbsp; I'm working on a new one and I have gotten to a point where I need to have something happen when the user selects the tool (i.e., turn on a layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having difficulty finding how to capture the event that fires when the user selects the tool?&amp;nbsp; Is there an onClick or onSelect event that fires when the user selects the tool?&amp;nbsp; And how do I implement that event in my code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using Visual Studio 2008 vb.Net, ArcGIS Desktop 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 14:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561870#M15151</guid>
      <dc:creator>JohnBarnes</dc:creator>
      <dc:date>2012-09-07T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in Tool onClick or onSelect?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561871#M15152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, there is an "OnClick" sub for a tool. if you use the ArcGIS|Extending ArcObjects|Base Tool template, there will be a provided "OnClick" sub for you to fill out with all of your appropriate code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin Orcutt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS Developer/Consultant&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Cincinnati - Cincinnati Area GIS (CAGIS)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(513) 850-1335 (cell)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="mailto:&amp;quot;Kevin.Orcutt@cincinnati-oh.gov&amp;lt;br/&amp;gt;&amp;quot;" rel="nofollow"&gt;Kevin.Orcutt@cincinnati-oh.gov&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cagis.org" rel="nofollow"&gt;www.cagis.org &lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 19:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561871#M15152</guid>
      <dc:creator>KevinOrcutt</dc:creator>
      <dc:date>2012-09-07T19:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in Tool onClick or onSelect?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561872#M15153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The OnClick subroutine is not visible when you create your add-in, but it will be automatically populated when you type in &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Protected Overrides Sub OnClick()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the Help walkthrough on &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Walkthrough_Building_custom_UI_elements_using_add_ins/0001000001ms000000/"&gt;Building custom UI elements using add-ins&lt;BR /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 20:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561872#M15153</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-09-07T20:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in Tool onClick or onSelect?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561873#M15154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Answered my own question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sup is OnActivate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 21:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-tool-onclick-or-onselect/m-p/561873#M15154</guid>
      <dc:creator>JohnBarnes</dc:creator>
      <dc:date>2012-09-07T21:52:59Z</dc:date>
    </item>
  </channel>
</rss>

