public void Activate(Inventor.ApplicationAddInSite addInSiteObject, bool firstTime) { m_inventorApplication = addInSiteObject.Application; m_ApplicationEvents = m_inventorApplication.ApplicationEvents; m_ApplicationEvents.OnOpenDocument += this.m_ApplicationEvents_OnOpenDocument; mControlForm = new Form1(m_inventorApplication); mControlForm.ShowModeless(); }