Hello
If my IQ works the best! You mean:
1. A user Control (
MyUserControl
)
2. Image(
MyImage
), Label(
MyLabel
) and Panel(
MyPanel
) in
MyUserControl
3. after creating an instance of the user control, then
MyImage
and
MyLabel
must add to
MyPanel
.
Ok, It's not too hard:
Do it In the Constructor of the
MyUserContorl
.
For example:
public MyUserControl()
{
InitializeComponent();
MyPanel.Controls.Add(MyLabel);
MyPanel.Controls.Add(MyImage);
}