public void ShowForm(UIApplication uiapp) { // If we do not have a dialog yet, create and show it if (m_MyForm == null || !m_MyForm.IsActive) { // A new handler to handle request posting by the dialog ExternalEventHandler handler = new ExternalEventHandler(uiapp); // External Event for the dialog to use (to post requests) ExternalEvent exEvent = ExternalEvent.Create(handler); // We give the objects to the new dialog; // The dialog becomes the owner responsible fore disposing them, eventually. m_MyForm = new SelectParameters(uiapp, exEvent, handler); m_MyForm.Show(); } }