how to define an array of textboxes in c#?

arrays, c#, loops, naming, textbox

Solution

Actually I found `TextBox[] array = { firstTextBox, secondTextBox };` works too!

Problem

Hi when I create textboxes on Windows Application Form I cannot name it as box[0], box[1] and so on. The purpose why I want to do like this is because I want to use them in a loop.

Original source