private void BtnDispYes3_Click(object sender, EventArgs e) { popup3 = new frmGM11_Pop03(); popup3.to_day = bandedGridView1.GetFocusedRowCellValue("pay_date").ToString(); popup3.FormClosed += popup3_FormClosed; popup3.ShowDialog(); }
private void popup3_FormClosed(object sender, FormClosedEventArgs e) { popup3.FormClosed -= popup3_FormClosed; popup3 = null; }