Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Properties disappear
Message
De
05/12/1997 18:17:21
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
 
 
À
02/12/1997 12:17:22
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00063314
Message ID:
00064172
Vues:
34
>I have created an ActiveX control I am using in a form. That control contains several properties I have defined. From my form, in the property sheet for that control, I see all the properties defined. I can also enter some values for them. I can save the form as well. As sonn as I run the form and come back to the design mode, all my property values are gone.
>
>Any idea?

Yes. You will need to use the PropertyBag in order to save values for the custom properties. There is a ReadProperties, InitProperties, and WriteProperties events. Also, in your Property Let routine for setting the property, make sure that you issue a PropertyChanged statement.

If you are not sure what all of this is, then I suggest an excellent book on the subject of creating ActiveX Components. It is called:
Developing ActiveX Components with Visual Basic 5.0 by Daniel Appleman.
Jay Shepherd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform