for (int i = Controls.Count-1; i > 0; i--) { if (Controls[i].Name.Length > 7) { if (Controls[i].Name.Substring(0, 7) == "NewGrid") { Controls.Remove(Controls[i]); this.Refresh(); } }
this.Invalidate()
this.Refresh()
Controls[i].Visible = false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)