Clone Winform control

后端 未结 2 1829
臣服心动
臣服心动 2021-01-13 03:48

I have a groupox in a VB.NET winform app. The groupbox contains a few Labels, Textboxes and Checkboxes. This was created by simply dragging the controls out of VS toolbox.

相关标签:
2条回答
  • 2021-01-13 04:18

    Could this be a help to you?
    How to Clone/Serialize/Copy & Paste a Windows Forms Control

    0 讨论(0)
  • 2021-01-13 04:24

    What you could do is create a user control based upon your groupbox which would allow its reuse. You could then create the instances you require at runtime and add them to the form.

    Maybe suggest that you look into creating user controls for winforms.

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