>>Hi everybody,
>>
>>This topic most probably has been discussed before, in this case may be you can point me out to the discussion.
>>
>>I have a simple form with an editbox and an Ok button at the bottom right. I pass the string to assign to the editbox. I am wondering if it's possible to automatically resize the form to show the full content of the string (if it's too long, just use maxwidth/maxheight)?
>>
>>Also, the editbox and the button have anchor properties set.
>>
>>The initial form display is attached and I have to re-size the form every time to see full content.
>>
>>Thanks in advance.
>
>So you need to calc the width / height of the editbox?
>
>Tricky. But not impossible. It's to much to describe. If you e mail me I hand you my editbox base class that can do such stuff.
The editbox has default font (Arial, 9) and the anchor is 15. I was thinking we need to resize the form first.
If it's not broken, fix it until it is.
My Blog