IEnumerable<Button> buttons = this.Controls.OfType<Button>();
foreach (Button b in buttons)
if (b.Name == "name" || b.Tag == "tag")
b.Enabled = false;
If you've also containers on your form, such as
s, then you should use recursion to disable also some buttons on the panel.
Hope this helps.