<?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: Application.Idle not available in modeless forms in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/application-idle-not-available-in-modeless-forms/m-p/259838#M6675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear list&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After extensive contact with the ESRI support team we figured out, that the above mentioned approach is not working. In case of modeless forms, the Application.Idle event never reaches the form. This happens only in case of modal forms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only workaround is to use the Update-method of the calling AddIn or ICommand. Within this method you could call a public method OnUpdate of the form. That works quite well, but unfortunately, there is a certain delay when Update() is called from ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yvo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 04:20:19 GMT</pubDate>
    <dc:creator>YvoWeidmann</dc:creator>
    <dc:date>2012-02-29T04:20:19Z</dc:date>
    <item>
      <title>Application.Idle not available in modeless forms</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/application-idle-not-available-in-modeless-forms/m-p/259837#M6674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear list&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to use the Application.Idle event to handle to appearance of controls in a Add-In using Windows.Forms with defining the event handler in the constructor of the form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Idle += new EventHandler(Application_Idle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling the form with (modal)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selectionMutation.ShowDialog()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the event handler is called as soon as the application goes idle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as I call the form with (modeless)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selectionMutation.Show()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the event is not reaching the form anymore and the event handler will not be called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone knows the reason for that and to overcome this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to any hint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yvo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2011 13:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/application-idle-not-available-in-modeless-forms/m-p/259837#M6674</guid>
      <dc:creator>YvoWeidmann</dc:creator>
      <dc:date>2011-09-18T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Application.Idle not available in modeless forms</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/application-idle-not-available-in-modeless-forms/m-p/259838#M6675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear list&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After extensive contact with the ESRI support team we figured out, that the above mentioned approach is not working. In case of modeless forms, the Application.Idle event never reaches the form. This happens only in case of modal forms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only workaround is to use the Update-method of the calling AddIn or ICommand. Within this method you could call a public method OnUpdate of the form. That works quite well, but unfortunately, there is a certain delay when Update() is called from ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yvo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 04:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/application-idle-not-available-in-modeless-forms/m-p/259838#M6675</guid>
      <dc:creator>YvoWeidmann</dc:creator>
      <dc:date>2012-02-29T04:20:19Z</dc:date>
    </item>
  </channel>
</rss>

