It seems more practical to me to use a scrollbar. That way, the user can write any amount of text, and the control will not cover other controls.
You could also make your EditBox (not TextBox) somewhat bigger when it receives the focus (GotFocus), temporarily covering other objects. But that would make it difficult to select other objects with the mouse. The user could still exit with the TAB key.
If you really want to try to dynamically change the size, as you suggested, use the InteractiveChange() Event and check for len(This.Value). Better do this only when the object has the focus; otherwise, at LostFocus(), use some standard size, to avoid covering other objects.
>Dear Sir,
>
>I have a textbox with following properties
>
>hight=16
>width=200
>
>I can write 25 characters in it.
>
>When number of characters increases
>more than 25, the textbox height should be =32,double, and when
>more than 50, the textbox height should be =48,tripple, and so on.
>
>To do this what should I do?
>
>For some reasons I do not want to use Editbox instead of Textbox.
>
>Please help
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)