how to remove all buttons on a form C#
panel.Controls.OfType<Button>().ToList().ForEach(btn => btn.Dispose());
Are there any code examples left?
New code examples in category C#
panel.Controls.OfType<Button>().ToList().ForEach(btn => btn.Dispose());