void fasGetAccountCode_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { sAccountCodeToReceive = fasGetAccountCode.sGetAccountCode(); if (sAccountCodeToReceive != "NONE_SELECTED") { string[] sExtraInfo = { tEngine.sGetAccountDetailsFromCode(sAccountCodeToReceive)[2].TrimEnd('\0').TrimEnd(' ') }; fiGetAmount = new frmInput(frmInput.FormType.ReceivedOnAccount, pLocation, new Size(sSize.Width, 75), sExtraInfo); fiGetAmount.Show(); fiGetAmount.FormClosing += new FormClosingEventHandler(fiGetAmount_FormClosing); } }