codice:foreach( Control c in form1.Controls) { Button tmp = new Button(); if(c.getType() == tmp.getType()) { //questo è uno dei tuoi bottoni c.Foreground = ....; } }
codice:foreach( Control c in form1.Controls) { Button tmp = new Button(); if(c.getType() == tmp.getType()) { //questo è uno dei tuoi bottoni c.Foreground = ....; } }