At the end, I chose to use the framework 3.5 and it's working.
Public Overridable Sub Startup(ByRef initializationData As Object) Implements IExtension.Startup ' this section provides a hook into the application framework If Not initializationData Is Nothing Then ' Get the application m_application = CType(initializationData, IApplication) ' Link the document events m_documentEvents = CType(m_application.Document, IDocumentEvents_Event) AddHandler m_documentEvents.OpenDocument, AddressOf Me.m_documentEvents_OpenDocument AddHandler m_documentEvents.NewDocument, AddressOf Me.m_documentEvents_NewDocument AddHandler m_documentEvents.CloseDocument, AddressOf Me.m_documentEvents_CloseDocument AddHandler m_documentEvents.BeforeCloseDocument, AddressOf Me.m_documentEvents_BeforeCloseDocument AddHandler m_documentEvents.ActiveViewChanged, AddressOf Me.m_documentEvents_ActiveViewChanged
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.