Reputation: 2661
I develop a winform with a big testbox and a button below.
I set the textbox Anchor to the 4 directions so when the winform is resized, the tetbox will be resized accordingly.
However, the button below that should not be resized is covered by the bigger textbox.
How can I prevent this?
Upvotes: 2
Views: 269
Reputation: 37888
You should set up these anchors:
The large TextBox: Top, Right, Bottom, Left
The Button: Left, Bottom
The small TextBox: Right, Bottom, Left
You might want to add a MinimumSize
to the form to avoid messing up the layout when it's too small.
And here's a live demo:
Upvotes: 2
Reputation: 109792
Note: To see the document outline window: View => Other Windows => Document Outline
Upvotes: 3