private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) { // Finalizando a dll var ret = ACBrBoleto.Boleto_Finalizar(); ACBrBoleto.CheckResult(ret); }