How to make textbox stretchable?

Posted on 2011-10-04
Last Modified: 2013-12-16
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?
Question by:deleyd
    LVL 9

    Accepted Solution

    Set the Anchor property of text box to Top,Bottom,Left  or Top,Bottom,Left,Right
    LVL 40

    Assisted Solution

    by:Jacques Bourgeois (James Burger)
    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

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now