C #: Can someone give me a good example of how controls are captured at runtime?

C #: Can someone give me a good example of how controls are captured at runtime?

+1


source to share


2 answers


        textBox1.Multiline = true;
        textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;

      



Then resize your form and the text box should grow and shrink while maintaining the same distance from the edges of the form

+1


source


You can also see this post to see how Enums work with Flags attributes.



0


source







All Articles