C#: Could anyone give me good example on how anchoring controls at runtime is done?
From stackoverflow
-
textBox1.Multiline = true; textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;Then resize your form and the textbox should grow and shrink while maintaining the same distance from the form edges
Eoin Campbell : feel free to upvote then :) -
You could also see this post to see how Enums with the Flags attributes work.
0 comments:
Post a Comment