Sarp Kaya Sarp Kaya - 9 months ago 42
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.


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