It's not going to work in runtime. See
BUG: License Error with ActiveX Control Added at Run-Time mskb #
192693.
>I am doing a form in prg for the first time:
>how do I add a tree, image control and browser to it?
>
>
> ADD OBJECT otree AS olecontrol WITH ;
> Top = 35, ;
> Left = 0, ;
> Height = 213, ;
> Width = 144, ;
> Name = "oTree"
>
>
>this is created by the class browser but does not work. How do I tell the olecontrol is actually a treeview etc..
>
>
--sb--