>Hi All,
>
>I have a Edit box and two command controls below this edit box. I need to increase the size of the edit box dynamically based on the String passed as a paramter and need to resize the form, push the control below the Editbox. this edit box is with No Scroll.
>
>
>Any help is highly appreciated.
>
>Thanks in advance
>
>-Venkatram
You could calculate, or at least estimate, the size required for the text, with the TextWidth function. But I would go the easy way, and just reserve a reasonable size, and use automatic scrollbars for anything larger.
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)