G
Guest
I'm working with VS2005 on a Windows 2000 workstation, and I'm trying to
create a container control for use with win forms. I've started out by
creating a UserControl and adding the Designer attribute;
ParentControlDesigner (according to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;322222).
I've placed a panel on my UserControl, and anchored its top, left, and right
sides; to appear as a titlebar. I've created an instance of my UserControl
on a Form and anchored it's top, left, and right sides as well.
I noticed when I execute my application, and resize the Form, the right-side
anchor of the panel (the UserControl's child) temporarily loses hold. I say
this, because a gap appears between the right edge of the Panel and the
right-edge of the UserControl. However, if I then resize the form, the
UserControl resizes and the Panel resizes with the gap remaining.
Does this make sense? Has anyone experienced this, and found a resolution?
create a container control for use with win forms. I've started out by
creating a UserControl and adding the Designer attribute;
ParentControlDesigner (according to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;322222).
I've placed a panel on my UserControl, and anchored its top, left, and right
sides; to appear as a titlebar. I've created an instance of my UserControl
on a Form and anchored it's top, left, and right sides as well.
I noticed when I execute my application, and resize the Form, the right-side
anchor of the panel (the UserControl's child) temporarily loses hold. I say
this, because a gap appears between the right edge of the Panel and the
right-edge of the UserControl. However, if I then resize the form, the
UserControl resizes and the Panel resizes with the gap remaining.
Does this make sense? Has anyone experienced this, and found a resolution?