May be you can use scrollable container instead of growing form? If so, use Alexander Grigoriev class here in Downloads section.
>Hi Everyone,
>
>Wonder if I have painted myself in a corner. Have created a "scrolling, growing" "dialog" (form) to present users with series of questions (did this instead of a "wizard" approach of numerous mini-forms). As they answer one question, another set of controls is instantiated onto the form for them to ask. Start off with form set to something like 300 H x 500 w. Once I get more controls than will fit on the form, I increase the size of the form programmatically.
>
>I have to do that or the new controls do not show on the form. When I do that, with vertical scrollbar set on, I get a scrollbar.
>
>Works good at first but after a few questions, form grows to be off the bottom of the screen. So then I thought I have to limit the size of the form to some max. But then my controls do not show.
>
>So how do I get the "paintable" area of the form to grow without growing the entire window that the form is in. Or how do I keep the form growing and yet only a certain portion of the form shows on the screen.
>
>I looked at the SETVIEWPORT method but was not sure what it does.
>
>Albert
If it's not broken, fix it until it is.
My Blog