private void button1_Click(object sender, EventArgs e) { try { frmConsultarPerfiles ofrm = new frmConsultarPerfiles(); ofrm.Event_frmConsultarPerfiles_FormClosing += new frmConsultarPerfiles.Delegate_frmConsultarPerfiles_FormClosing(ofrm_Event_frmConsultarPerfiles_FormClosing); ofrm.ShowDialog(); } catch (Exception) { } }