How can I create an Array of Controls in C#.NET?

后端 未结 4 2104
温柔的废话
温柔的废话 2021-01-03 15:48

I have a form which contains several standard controls (textbox\'s, buttons, etc). I want to group certain controls in collections so that I can enable and disable them at a

4条回答
  •  离开以前
    2021-01-03 16:02

    Have you considered using a layout manager? (as far as positioning goes) Keeping a list of controls (without specifying the control's position) will not automatically position the controls, a layout manager could help.

提交回复
热议问题