private void button2_Click(object sender, EventArgs e) { frm_Agregar newform = new frm_Agregar(); newform.Show(); this.Hide(); }
private void btn_editar_Click_1(object sender, EventArgs e) { var index = txt_contacto.SelectedIndex; if (index < 0) { MessageBox.Show("Selecciona un contacto"); } else { frm_Agregar newform = new frm_Agregar(); newform.reposeditar = index; newform.Show(); this.Hide(); } }