Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't copy class with OLE (MS Calendar) control ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00539882
Message ID:
00539908
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Jaime,

Yes, it's a bug that you can't copy a class that has an OLE control in it. I think (backup both classlibs first!) what you can do is edit the original, cut the OLE to the clipboard, save the class, copy it to the other lib. Then open both and paste the OLE back in.

>I've made a datepickertextbox class whch is a container with a textbox and an (OLE) MS Calendar control in it. Probably a common control that people make for their apps and it all works fine. I made it visually in the class designer.
>
>If I try to copy the class from one vcx to another by dragging and dropping in the class designer I get an error : "Object class is invalid for this container. Class containing OLE object is being ignored".
>
>What is the soluton to this problem ? If I go into the copied class and add a MS Calendar control and copy the code,properites/methods etc from the original class to the copied class all is fine but obviously not perfect ! :)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform