Hi David
I thought as much. What I was wanting to do was to share the same runtime control (only one instance) between two sub forms. I can set up a reference to another object but the user cannot use it.
I figured that this would not be possible but wasn't sure.
Regards
Geoff
>Geoff,
>
>Is this control something you have done in a VFP class itself? Is it in a .prg or in a .vcx classlib?
>
>If it's in a classlib reuse is trivial. You can drag the class out of the project manager and drop it onto your form. Or you can point the form controls toolbar at your classlib and pick it from there. I prefer to get them from the PM itself because the toolbar is pretty useless when you have lots of classes derived from a few baseclasses.
>
>If it's in a prg you can only use it at runtime by using thisform.AddObject() to add it to the form. But you can pretty easily convert your prg class to a visual class to make it useable at design time.
>
>>If have a pre-existing control can I add it to my form?
>>
>>Is it possible to share the same contol between forms?
May all your weeds be wildflowers