Hi all,
This is the first time i've done this so please bare with me if i use the
wrong teminology, etc.
I've derived a design from ParentControlDesigner with the intention of being
able to manage the positioning of the controls as they're placed within a
controller at design time.
for the puppose of the example, my control is called MultipleControlManager
i.e.
internal class MultipleControlManagerDesigner : ParentControlDesigner
{
public MultipleControlManagerDesigner () : base()
{
}
protected override void PreFilterProperties(IDictionary properties)
{
base.PreFilterProperties(properties);
properties.Remove("BackColor");
properties.Remove("BackgroundImage");
properties.Remove("BorderStyle");
properties.Remove("Cursor");
properties.Remove("BackgroundImage");
}
}
what i want to be able to do is auto position controls within my
"MultipleControlManager" control, for example when a new control is dragged
on to this container, i want to say position the new control x pixels below
the bottom of the last.
i hope that makes sense. anyone got any ideas/ knows how to do this?
TIA
Sam martin