c# - Buttons from Base Class are Changing positions -


i've base form class designed enter image description here @ bottom put docked-bottom panel , inside panel put 2 buttons. set anchor's property of these buttons "top, right" i've set form's autoscalemode none

on application inherited base form , don't know happening. buttons go middle of panel. if set again left , maybe rebuild baseform goes middle again. enter image description here

i've seen happen when controls in base form have protected modifier. means inherited form can set controls' properties (like location) itself. why way, don't know.

when winforms turned old lady, stopped fighting idiosyncrasies, tried work around them (as old ladies). in case use flowlayoutpanel in stead of regular panel , set flowdirection = flowdirection.righttoleft.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -