eventually I'll have 10 or more buttons each removing and addin a new container. So the activate of the page would not help here, I think
>Put it in the Page Activate and see if this would help.
>
>>in the click method of a button
>>
>>
>>
>>>>i want to add objects on the fly at runtime
>>>>this code:
>>>>
>>>>THIS.PARENT.REMOVEOBJECT("cntTask")
>>>>THISFORM.pgf1.page2.NEWOBJECT("cntTask","cntTasks_general","modules\vcmc.vcx",THISFORM.business.DATA.mainidValue)
>>>>WITH THISFORM.pgf1.page2.cntTask
>>>> .LEFT=0
>>>> .TOP= 216
>>>> .VISIBLE=.T.
>>>>ENDWITH
>>>>
>>>>
>>>>
>>>>does not make it visible.
>>>>
>>>>What am i doing wrong?
>>>>
>>>>
>>>>this is insted of many pageframe pages wwhich make it quite slow. So I thought I could plop in containers when needed
>>>>
>>>>
>>>>Thanks
>>>>
>>>>Peter
>>>
>>>Where did you place this code? If Page2 Activate method?
Peter Cortiel