Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding existing control to form
Message
 
 
To
15/09/2004 18:37:44
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00942668
Message ID:
00942675
Views:
17
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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform