Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using generic VB properties in my own class

Status
Not open for further replies.

granni

Programmer
Nov 8, 2000
36
SG
I have a class that represents the property values of controls. Since the propertypage class is available, is there some way for me to use it?
dim i as propertypage

I cant write to it as VB says it is read-only?
e.g. i.name="Name"

Is there some class i can use as variable in my class to represent generic VB properties?
 
If I understand you correctly, you have property procedures within a class such as a public Name property that you are trying to set. If so, use a matching public Property Let procedure to make it writable and reference your properties through the object that you instantiate from the class.

Also, when you say property page, are you creating them for use with a custom ActiveX control? Please provide more info. Thanks.

Rai
 
I am not creating an ActiveX control, rather, i have a class that simulates controls on a form.

This class needs to store the properties of these controls into a database, therefore i am trying to see if i can make use of the PropertyPage object in my class for the generic VB properties

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top