✅ Winforms
i have a button with
Anchor = AnchorStyles.Bottom | AnchorStyles.Right,
property but even though it's the only control in the form it just appears in the top left10 Replies
Anchor style will change how your button resizes with your window. If that's not what you want, try looking at the Dock property
but dock can have only one value
not like
bottom
& right
Move it to where you want it (ie, lower right corner), then set the anchor prop to
Bottom | Right
this button is manually placed with the desired distance from the corner, then anchored to bottom | right, no docking
so i could just do that and like
Left = form.width - btn.Width
Top = form.Height - btn.Height
as startupYep, that could work
hmm i wish there was a better way :(
Winforms isnt really designed for "flow" layouts as such, you might want to consider WPF if you want that experience