Hi All,
We have created an extension and wiring IDocumentEvents_Event, IActiveViewEvents on start-up event. We used code snippet IActiveViewEvents.
Our objective is to track the layers added or removed and populate into DropdownList in Toolbar.
This is working fine until we click on New / Open Documents commands.
We tried to call the SetupActiveViewEvents methods on New / Open documents with Focus Map.
But it is not working all the times.
I have attached the code for your reference.
ArcGIS 10.1 with SP1, VS.NET 2010 C#, .NET Framework 4.0, ArcSDE 10.1 Layer files and Windows 7 64-bit O/S, Oracle 11g
Thanks lot for your help.
Regards,
Venkat