<?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: Catch ArcMap Closing Event in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535768#M14477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should do this in the ICustomizationFilter class.&amp;nbsp; This class get all click in ArcMap.&amp;nbsp; If your user click on Close buton, this class is fire, and you can decide what you want to do with this command.&amp;nbsp; You can stop the command, send a forms, all you want.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's work fine for File/close ,&amp;nbsp; but not for "X".&amp;nbsp; "X" seems to be a little bit different.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it can help you a little bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 16:00:38 GMT</pubDate>
    <dc:creator>vincentLahaye</dc:creator>
    <dc:date>2010-08-05T16:00:38Z</dc:date>
    <item>
      <title>Catch ArcMap Closing Event</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535765#M14474</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;SPAN&gt;I'm writing an ArcMap extension in which the user can potentially launch some long running processes. For that reason I'd like to be notified when the user tries to close ArcMap so I can throw up a dialog that asks them to confirm that they really want to close, not waiting for the long running process to complete. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using the BeforeCloseDocument event but that also gets fired when you open a new document. I just want to know when the application is going down. Does anyone know a way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 14:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535765#M14474</guid>
      <dc:creator>ChrisKeefer</dc:creator>
      <dc:date>2010-08-05T14:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Catch ArcMap Closing Event</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535766#M14475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using your own extension, you should have something like that : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/VB6/scenarios/dtop_extensions.htm"&gt;http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/VB6/scenarios/dtop_extensions.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will find a shutdown method.&amp;nbsp; When Arcmap is closing, this method is called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 15:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535766#M14475</guid>
      <dc:creator>vincentLahaye</dc:creator>
      <dc:date>2010-08-05T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Catch ArcMap Closing Event</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535767#M14476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply Vincent. The problem is that I want to be able to stop ArcMap from closing, similar to returning true in the IDocumentEvents.BeforeCloseDocument event. So when the user clicks the 'x' or File--&amp;gt;Close I'd like to catch the event so I can warn the user that there is a process running that will be killed if they close ArcMap. If they decide they don't want to close ArcMap, I'll eat the event (like returning true above) and ArcMap will stay open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 15:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535767#M14476</guid>
      <dc:creator>ChrisKeefer</dc:creator>
      <dc:date>2010-08-05T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Catch ArcMap Closing Event</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535768#M14477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should do this in the ICustomizationFilter class.&amp;nbsp; This class get all click in ArcMap.&amp;nbsp; If your user click on Close buton, this class is fire, and you can decide what you want to do with this command.&amp;nbsp; You can stop the command, send a forms, all you want.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's work fine for File/close ,&amp;nbsp; but not for "X".&amp;nbsp; "X" seems to be a little bit different.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it can help you a little bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 16:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535768#M14477</guid>
      <dc:creator>vincentLahaye</dc:creator>
      <dc:date>2010-08-05T16:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Catch ArcMap Closing Event</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535769#M14478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a thread about your problem with my solution.&amp;nbsp; The X problem seem to be a real problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=982&amp;amp;t=215177"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=982&amp;amp;t=215177&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 16:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/catch-arcmap-closing-event/m-p/535769#M14478</guid>
      <dc:creator>vincentLahaye</dc:creator>
      <dc:date>2010-08-05T16:29:43Z</dc:date>
    </item>
  </channel>
</rss>

