private void butRotation_Click(object sender, System.EventArgs e) { IRendererUIDialog2 pRendUIDlg2 = null; pRendUIDlg2 = new MarkerRotationDialog() as IRendererUIDialog2; pRendUIDlg2.FeatureLayer = m_pCurrentLayer; pRendUIDlg2.Renderer = m_pRend; SecondaryForm pMyForm = null; pMyForm = new SecondaryForm(); pRendUIDlg2.DoModal(pMyForm.Handle.ToInt32()); }