Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextBox size change when re-sizing the form

Tags:

Many programs re-size their text boxes, labels, picture boxes, etc... when you change the the whole form's size. But when I drag a text box in my form and make the form smaller, it will overlap the text box and it'll be unusefull because I can't see everything which is written in there.

It's hard to explain so here are some photo's:

enter image description here

like image 843
Nick Peelman Avatar asked Apr 02 '13 16:04

Nick Peelman


People also ask

How do I automatically resize a text box?

Fit text automatically Click anywhere in the text. On the Format menu, point to AutoFit Text, and do one of the following: To reduce the point size of text until there is no text in overflow, click Shrink Text On Overflow. To shrink or expand text to fit in the text box when you resize the box, click Best Fit.

How do I resize a text box in Word to a specific size?

Resize a text box Select the text box. Select one of the handles and drag until the text box is the size you want.


1 Answers

Check the property Anchor for your textbox.
It appears that you need to set to Top, Left, Right

If you set in this way, the textbox remains anchored to its container left, top and right borders.
Thus, when the form (the container) is resized, the textbox automatically grows or shrinks to maintain the original distance set in the designer.

like image 143
Steve Avatar answered Oct 13 '22 20:10

Steve