J
James Crosswell
I have a very simple user control. I want this control to act as a sort
of container so that I could drag/drop other components (from the
toolbox) onto this control and then dock them etc within this user
control. What do I need to do to achieve this?
I can mimic the behavior that I want at runtime by setting properties
for child controls in constructors like:
ChildControl1.Parent = MyUserControl;
ChildControl2.Dock = DockStyle.Bottom;
ChildControl2.Parent = MyUserControl;
ChildControl2.Dock= DockStyle.Fill;
But I'd like to do this at design time simply by draging/dropping
ChildControl1 and ChildControl2 onto MyUserControl and setting the
appropriate Dock properties.
Thanks in advance.
Best Regards,
James Crosswell
Microforge.net LLC
http://www.microforge.net
of container so that I could drag/drop other components (from the
toolbox) onto this control and then dock them etc within this user
control. What do I need to do to achieve this?
I can mimic the behavior that I want at runtime by setting properties
for child controls in constructors like:
ChildControl1.Parent = MyUserControl;
ChildControl2.Dock = DockStyle.Bottom;
ChildControl2.Parent = MyUserControl;
ChildControl2.Dock= DockStyle.Fill;
But I'd like to do this at design time simply by draging/dropping
ChildControl1 and ChildControl2 onto MyUserControl and setting the
appropriate Dock properties.
Thanks in advance.
Best Regards,
James Crosswell
Microforge.net LLC
http://www.microforge.net