Sarp Kaya Sarp Kaya - 11 months ago 47
C# Question

how to define an array of textboxes in c#?

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.

Answer Source

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