I have user control consisting of a 2 buttons and a groupbox (C#). When I add controls inside this user control , I want them to be contained inside the groupbox and not the user control itself. Is there a way to do this ??
Asked
Active
Viewed 56 times
1 Answers
0
Shouldn't be too difficult to do really.
myGroupBox.Controls.Add(control)
Another user left a bit more detailed answer which will probably be of use. Attach components to GroupBox in C#

Community
- 1
- 1

Sava Glodic
- 103
- 2
- 6
-
Thats for a normal groupbox but my groupbox is inside a user control and i want to add it in design mode – user2862843 Jun 09 '16 at 10:54