foreach (object obj in Controls)
{
if ("System.Windows.Forms.Button"==obj.GetType().ToString())
{
Button bt = (Button)obj;
bt.Text = "1";
}
}