Enabling design surface on Winforms custom UserControl

前端 未结 2 845
死守一世寂寞
死守一世寂寞 2021-01-07 06:11

I tried to create a custom user control in C# that handles other controls that are added to it. The custom control consists of two panels. What I\'m trying to achieve is, th

2条回答
  •  情深已故
    2021-01-07 06:21

    Why not just drag it into the panel, or give one of the panels a public accessor and do all your programmatic adding to that panel directly?

提交回复
热议问题