>I have the following code in the init of a container control.
>
>
>......
>lcReqFldStar="lblstartest"
>loReqFldStar="THISFORM.cntBase1."+lcReqFldStar
>THISFORM.cntBase1.ADDOBJECT(lcReqFldStar,"lblReqFldStar")
>WITH &loReqFldStar
> .TOP=10
> .LEFT=15
> .VISIBLE=.T.
>ENDWITH
>.......
>
>
>The problem is when the form shows up, the label added to the container is moved by Fox automatically from 0,0 to another position 86,108.
>If I run the same code from a click event of a button or in the init of the form, runs fine. This is happening only with containers. If I add the same control to a form in the init of a combobox or textbox works fine.
check lblReqFldStar.Anchor