private void btn_rel_contas_pagar_Click(object sender, EventArgs e) { Frm_Rel_Contas_Pagar form = new Frm_Rel_Contas_Pagar(); form.Show(); Fechar_Form(); }
private void Frm_Impressao_FormClosing(object sender, FormClosingEventArgs e) { foreach (Form form_aberto in Application.OpenForms) { if (form_aberto.Text.Contains("Relatório do Contas a Pagar")) { Frm_Rel_Contas_Pagar form = (Frm_Rel_Contas_Pagar)form_aberto; } } }
private void btn_rel_contas_pagar_Click(object sender, EventArgs e) { Frm_Rel_Contas_Pagar form = new Frm_Rel_Contas_Pagar(); form.Show(); if (this.Text.Contains("Inicio")) { this.Hide(); } else { this.Hide(); this.Close(); } }