I have a composite custom control which is constructed of several other controls, such as command buttons, a listview etc. I have several controls which border the boundary of the container and have their anchor properties set accordingly, for example, ensuring a button stays on the right border when the control is resized. Now in the control's design view everything works correctly, controls are correctly repositioned. However, when I put the composite custom control on a form, the anchor properties are completely ignored, for example, in the form's design view when you resize the control, the child controls with the anchor property set don't move, and even in runtime the control has not correctly resized.
Now obviously I could manually control things in the resize event, but this defeats the point of the anchor property, which works for single controls, so why not for a custom control. Has anyone else experienced this and found a solution or at least knows why it happens?
Thanks In Advance,
James