Resizing a text box in C #

I have two multi-line text fields separated in splitContainer. When I drag the separator left or right, I would like the text fields to resize accordingly. How should I do it? I am using Microsoft Visual C # 2008 Express Edition. Thank.

+3
source share
6 answers

If you set the Dock.Fill text fields for the Dock property, this should happen for you.

+4
source

Two ways:

  • Set the Textbox.Anchor property to Up, Left, Down, and Right.
  • Textbox.Dock .
+1

, , , anchor Top, Left, Bottom, Right true.

..::.

, , .

0
source

You must dock them on each panel.

0
source

It was very late for the party, but all I did was find that the dock is filling up, and Multiline is true, and it is filling in the gap.

0
source

Just set the style TextBoxas follows

.MultiLineTextBox
        {
            max-height: 52px;
            max-width: 163px;
            min-height: 52px;
            min-width: 163px;
        }
<asp:TextBox ID="txtremark" runat="server" CssClass ="MultiLineTextBox"

and enjoy.

-1
source

Source: https://habr.com/ru/post/1729623/


All Articles