• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 516
  • Last Modified:

How to make textbox stretchable?

I have a simple Windows Forms in Visual Studio with a multiline textbox. I can stretch the window, but the textbox doesn't stretch with the window.

How do I make the textbox stretch with the window?
2 Solutions
Set the Anchor property of text box to Top,Bottom,Left  or Top,Bottom,Left,Right
Jacques Bourgeois (James Burger)Commented:
Depends on how you want to stretch it.

Vertical only      Anchor property : Top,Bottom
Horizontal only  Anchor property : Left,Right
All sides            Anchor property : Top,Bottom,Left,Right

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now