Try this sequence:
Resize the container
Call the container.Refresh()
Resize the activeX control
>Hi all
>
>I have this TreeView inside a container and all in all is working well. If I click on the forms Max. button the Container and the contained TV all resizes when I check the properties but the TV will only display the new size when I click on it.
>
>This TV is set not to receive focus. Is there some smooth way to get it done. I tried putting TV.Refresh() in the Resize of the container as well in the TV itself but no luck.
>
>If there is a way to set focus to the TV and back to the control actually having focus when the form was resized, that too is fair with me.
>
>Please advise.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca