What are property pages. Where does the need for using arise?
Printable View
What are property pages. Where does the need for using arise?
When you draw a control on a form, like a text box, and click on Properties, you are looking at the property page for that control. Each control has its own property page which allows you to control how that control will function.
When you create an ActiveX control, yourself, you can also add a similiar type of property page that will afford the people using your control the ability to set its properties at design time, the same way you can with standard VB controls.
Ok then, what's a property Bag ? & what earthly use is it ??
Quote:
A PropertyBag object holds information that is to be saved and restored across invocations of an object.
A PropertyBag object is passed into an object through the ReadProperties event and the WriteProperties event in order to save and restore the state of the object. Using the methods of the PropertyBag object, the object can read or write properties of itself. The ReadProperty method of the PropertyBag object is used to read a value for a property, while the WriteProperty method of the PropertyBag object is used to write a value of a property. The value of a property can itself be an object; in that case the PropertyBag object will attempt to save it.