>Hi All,
>
>How can I calculate the height of a control (editbox) to show all lines of a string?
>
>Thanks in advance
>
>Agnes
Agnes,
Without having looked at the other thread ..
Not taking into account that a line may overflow due to the width of the editbox, the following gets good results IMO and may get you where you want.
Have a look at it and see whether it can be of any help
? thisform.TextHeight(thisform.Editbox1.text)
Gregory