G
Guest
I've created a Control class and have added the
System.ComponentModel.DesignerAttribute attribute to make the Control object
act as a control container at design-time.
[Designer("System.Windows.Forms.Design.ParentControlDesigner,
System.Design", typeof(IDesigner))]
public class MyContainerControl : System.Windows.Forms.Control
{
..
..
..
}
This works fine, but it allows the developer to put controls anywhere they
want inside the control container. I want to restrict this, so that controls
can only be positioned within a defined area inside the container control.
Can someone please show me an example on how to do this?
Thank you.
System.ComponentModel.DesignerAttribute attribute to make the Control object
act as a control container at design-time.
[Designer("System.Windows.Forms.Design.ParentControlDesigner,
System.Design", typeof(IDesigner))]
public class MyContainerControl : System.Windows.Forms.Control
{
..
..
..
}
This works fine, but it allows the developer to put controls anywhere they
want inside the control container. I want to restrict this, so that controls
can only be positioned within a defined area inside the container control.
Can someone please show me an example on how to do this?
Thank you.