foreach(Control control in this.Controls)
  if(control is Panel)
    foreach(Control ctr in panel.Controls)
      if(ctr is Label){
         Label label = (Label)ctr;
         label.Text="test";