c# - Windows Form designer size does no match runtime size -


first of all, here image understand problem better form comparison

as can see, both designer form in background , debug runtime form aligned each other. yet still, form on "normal size" ends eating "total" label on bottton right side. label , rest of form content shows nicely both on designer form, , on maximized runtime form, can see below. enter image description here

so, summarize, how make normal sized runtime form not eat labels show fine on designer form?

use anchor property. here description of it:

defines edge of container control bound. when control anchored edge, distance between control's closest edge , specified edge remain constant.

in case, set label total da folha selecionada anchor right.

however, there no way show labels if there isn't space it. that, specify minimumsize form.


Comments