Say I have 10 text boxes and I want to put the same text into each of them. I don\'t want to write textBoxNum. Text = \"hello!\" ten times so I might write somethin
textBoxNum. Text = \"hello!\"
You should put your textboxes into an array:
TextBox[] boxes; public MyForm() { InitializeComponent(); boxes = { someTextBox, otherTextBox, ... }; }