Sarp Kaya Sarp Kaya - 1 year ago 78
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!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download