Naomi --
You will see the effect you describe if you have changed the top/left/height/width of a control that has a non-zero anchor setting.
So, the trick is to set the anchor to zero before making the change, then set it back to its original value afterward.
Jim
>Hi everybody,
>
>I have a form with an editbox control and a grid control under it. Anchor of both set to resize in run-time.
>
>I also have a code in InteractiveEvent of the combobox to either set editbox height to cover to the bottom of the form (and make grid invisible) and or keep both controls visible.
>
>However, when I do so, and resize the form, the editbox gets resized by its original size, not by the new size I set in run-time.
>
>Do you know how to fix it?
>
>Thanks in advance.
>
>Update. I think I solved it.
Jim Nelson
Newbury Park, CA