private void BtnKeypadClick(object sender, EventArgs e) { _frmkeypad = new MobileKeypad(); _frmkeypad.FormClosed += FrmKeypadClosed; _frmkeypad.Show(); Hide(); }
void FrmKeypadClosed(object sender, FormClosedEventArgs e) { _frmkeypad.Dispose(); _frmkeypad = null; Show(); }