c# - Buttons from Base Class are Changing positions -
i've base form class designed @ 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.
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
Post a Comment