Making an indexed control array?

后端 未结 7 1626
失恋的感觉
失恋的感觉 2020-12-03 16:15

Has C# indexed control arrays or not? I would like to put a \"button array\" for example with 5 buttons which use just one event handler which handles the index of all this

相关标签:
7条回答
  • 2020-12-03 16:40

    Another thing to note: if you really need to edit 100 strings on one form, you should probably think about whether 100 text boxes is really the best way to do it. Perhaps a ListView, DataGridView, or PropertyGrid would be better suited.

    This applies almost any time you think you need a huge array of controls.

    0 讨论(0)
提交回复
热议问题