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.
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.
Further, we are setting some properties of the mapcontrol.
In certain cases, when i set the properties of the mapcontrol, i get this error: 'System.Windows.Forms.AxHost+InvalidActiveXStateException' .
I learnt that this error arises when the mapcontrol instance exists but is not held by any container that can draw it.
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.
Thanks.