samedi 18 avril 2015

User Control inside TableLayoutPanel shifts anchored controls to the right for no reason

WinForms question:


I have a TableLayoutPanel where each panel contains a UserControl. This UserControl in turn contains a ListView and two LinkLabels. The ListView is on top, anchored to Top, Left, Bottom, Right.


When I add the user control to the TableLayoutPanel, everything looks great.


But when I debug the program, I suddenly see (as it is compiling) that the ListView and two LinkLabels suddenly mode to the right about 100 pixels, and then that's the way the program is run. They anchor fine, except that their starting point is off.


Has anyone encountered this?


Aucun commentaire:

Enregistrer un commentaire