private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) { // Liberando a dll posPrinter.Dispose(); }