<?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 IExtension example in C#&amp;nbsp; - event listener? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107366#M2800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone point me to a good example of IExtension in C#?&amp;nbsp; I have written a simple event listener, but I don't seem to be hooking it up quite right.&amp;nbsp; I want the listener to be on whenever ArcMap is on, so no interaction from the user is required to start the tool I will be writing - well, no action other than making a feature selection with the select tool.&amp;nbsp; I am listening for the "OnSelectionChanged()" event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found plenty of examples of an event listener class, so I am fairly confident in that part of my code.&amp;nbsp; The difficulty seems to be in hooking it to the application.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, probably a more basic question - is this the right approach to inherit from IExtension for an event listener, or should I be inheriting from BaseTool and going at it from that direction (or something else entirely)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for any input on this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 16:39:04 GMT</pubDate>
    <dc:creator>VickiMartinez</dc:creator>
    <dc:date>2010-05-11T16:39:04Z</dc:date>
    <item>
      <title>IExtension example in C#  - event listener?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107366#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone point me to a good example of IExtension in C#?&amp;nbsp; I have written a simple event listener, but I don't seem to be hooking it up quite right.&amp;nbsp; I want the listener to be on whenever ArcMap is on, so no interaction from the user is required to start the tool I will be writing - well, no action other than making a feature selection with the select tool.&amp;nbsp; I am listening for the "OnSelectionChanged()" event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found plenty of examples of an event listener class, so I am fairly confident in that part of my code.&amp;nbsp; The difficulty seems to be in hooking it to the application.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, probably a more basic question - is this the right approach to inherit from IExtension for an event listener, or should I be inheriting from BaseTool and going at it from that direction (or something else entirely)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for any input on this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107366#M2800</guid>
      <dc:creator>VickiMartinez</dc:creator>
      <dc:date>2010-05-11T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: IExtension example in C#  - event listener?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107367#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check this example: &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/f90f78a3-6dcc-4a17-8e22-74c25c93eb4a.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/f90f78a3-6dcc-4a17-8e22-74c25c93eb4a.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;It uses IExtension to wire events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have Fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 06:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107367#M2801</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2010-05-12T06:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: IExtension example in C#  - event listener?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107368#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is exactly what I was looking for.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iextension-example-in-c-nbsp-event-listener/m-p/107368#M2802</guid>
      <dc:creator>VickiMartinez</dc:creator>
      <dc:date>2010-05-12T19:20:58Z</dc:date>
    </item>
  </channel>
</rss>

