I have a WPF application with many labels.
....
You could add all those Label to a List within the form's constructor.
Label
List
It is a tedious work, but you'll only have to do it once.
List labels = new List(); labels.Add(label1); // etc. // loop for (int i = 0; i < labels.Count; i++) labels[i].Text = i.ToString(); // alternative loop foreach (Label label in labels) label.Text = "test";