private void btnPrint_Click(object sender, EventArgs e) { using (PrintTransactions printView = new PrintTransactions(AccountNumber)) { printView.ShowDialog(); } }