private void menuInfo_Click(object sender, EventArgs e) { if (listForm.Count != 0) { listForm[listForm.Count - 1].Close(); listForm.RemoveAt(listForm.Count - 1); } fAccountProfile f = new fAccountProfile(account); listForm.Add(f); f.MdiParent = this; f.Show(); }