Take a look at the addobject method of the form. This method can be cound on all other container objects as well.
>I use CREATEOBJECT() to create forms all the time, but I cannot seem to be able to figure out how to programtically add a text box or other control to a form. When I do x=createobject('textbox') for example, VFP tells me that there is an object out there. I can get all the properties for X, I just don't see it anywhere. How can I get this object into a specific form? This seems so trivial, but I have spent alot of time on it. All examples of createobject() use forms. Is there another command I should be using. Thanks for any help.
>Marcus.
kenweber
GCom2 Solutions
Microsoft Certified Professional