As I mentioned in the commentary on the HatSoft solution, C # Winforms does not allow you to create control arrays similar to the old VB6. The closest I think we can get to what HatSoft and Bert Evans showed in their posts.
One thing that I hope will satisfy your requirement is an event handler, you get a common event handler and in the event handler, when you write out the "sender", you get the control directly, as in VB6
WITH#
TextBox textBox = sender as TextBox;
Vb6
TextBox textBox = TextBox1[i];
Thus, the only problem you may encounter is to connect these 100 text fields to one event handler, if you do not create the controls dynamically through the code, but create it manually during development, then all you can offer is group them into a container, for example, say Panel. Then in Form Load, push them all down to one event handler as follows:
foreach (Control control in myTextBoxPanel.Controls) { if(control is TextBox) control.TextChanged += new EventHandler(control_TextChanged); }
source share