<?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 System.Windows.Forms.AxHost+InvalidActiveXStateExc eption in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-windows-forms-axhost-invalidactivexstateexc/m-p/120261#M3154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, We are developing a WPF based Engine application. In this application, we have tab controls, which have a WindowsFormsHost, which holds the instance of the mapcontrol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we switch between the tabs, we remove the mapcontrol from the previous windows formshost and place it in the current tab page's windows form host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further, we are setting some properties of the mapcontrol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In certain cases, when i set the properties of the mapcontrol, i get this error: 'System.Windows.Forms.AxHost+InvalidActiveXStateException' .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I learnt that this error arises when the mapcontrol instance exists but is not held by any container that can draw it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i wanted to know was, is there any way to know the activeXState of the mapcontrol? Just checking whether the mapcontrol is null isnt helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 10:11:10 GMT</pubDate>
    <dc:creator>pavankumar</dc:creator>
    <dc:date>2010-05-04T10:11:10Z</dc:date>
    <item>
      <title>System.Windows.Forms.AxHost+InvalidActiveXStateExc eption</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-windows-forms-axhost-invalidactivexstateexc/m-p/120261#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, We are developing a WPF based Engine application. In this application, we have tab controls, which have a WindowsFormsHost, which holds the instance of the mapcontrol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we switch between the tabs, we remove the mapcontrol from the previous windows formshost and place it in the current tab page's windows form host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further, we are setting some properties of the mapcontrol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In certain cases, when i set the properties of the mapcontrol, i get this error: 'System.Windows.Forms.AxHost+InvalidActiveXStateException' .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I learnt that this error arises when the mapcontrol instance exists but is not held by any container that can draw it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i wanted to know was, is there any way to know the activeXState of the mapcontrol? Just checking whether the mapcontrol is null isnt helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 10:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-windows-forms-axhost-invalidactivexstateexc/m-p/120261#M3154</guid>
      <dc:creator>pavankumar</dc:creator>
      <dc:date>2010-05-04T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: System.Windows.Forms.AxHost+InvalidActiveXStateExc eption</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-windows-forms-axhost-invalidactivexstateexc/m-p/120262#M3155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try looking into MapControl.OcxState&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That may help you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-windows-forms-axhost-invalidactivexstateexc/m-p/120262#M3155</guid>
      <dc:creator>NickClayton</dc:creator>
      <dc:date>2010-05-05T12:17:40Z</dc:date>
    </item>
  </channel>
</rss>

