>Hi all,
>
>Have started to build a new form adding controls at run time as needed (follow on of previous discussion). Each set of controls needed is inside of a container - for ease of adding a new "block" of controls.
>
>Upon form startup, no problem. The user is presented with one container full of controls. They then have a button to add additional blocks of controls.
>
>When I do this, the controls are there (i.e. via debugger) but they are not displayed. I have tried a) refreshing the page b) refreshing all the controls in the container and c) refreshing the container itself either before or after I refresh all the controls inside the container.
>
>If I click into where the container should be or even just hover over the area, the controls start to become visible.
>
>Is there a certain order I need to refresh things or ??
>
>Thanks,
>Albert
Try setting the control to be visible upon instantiation and you also can use SetAll to set all inner controls to be visible too (may be in container's init method). In other words, you need to make the container visible explicitly as all objects are created invisible as far as I recall.
If it's not broken, fix it until it is.
My Blog