It's not the same. The later adds an object to a form and makes it a part of the form. The former only stores a reference to an object in the forms property.
>>>You mean by instantiating the object as the following?
>>>
>>>thisform.MyObject = newobj("MyObjectClass","ClassLib")
>>>
>>
>>
>>yes - or -
>>
>>this.NewObject('MyObject', "MyObjectClass", "ClassLib")
>>
>
>Thank you, Gregory. This is what I will have to do. The only downside of this method (not a big deal though) is that I have to set all properties in code, instead of visually. Also, I have to set the object to NULL in the UNLOAD whereas if you drop the object it is destroyed automatically.
--sb--