Sarp Kaya Sarp Kaya - 2 months ago 6
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

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

Comments