Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Properties disappear
Message
From
05/12/1997 18:17:21
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
 
 
To
02/12/1997 12:17:22
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00063314
Message ID:
00064172
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform