Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having a property not shown at design time
Message
De
05/12/1997 19:41:32
 
 
À
05/12/1997 18:32:44
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00063657
Message ID:
00064194
Vues:
38
>>In my OCX, I want to define a property which will not appear at design time, in the property sheet, but will be available at run time.
>>
>>This is an Error property which will hold a value. This has no use at design time. So, this is why I don't want it to appear in the property sheet.
>>
>>At this point, I have about 20 properties which appear in the property sheet at design time.
>>
>>What difference should I do to not have the Error property appear in the property sheet?
>
>You can make the property Hidden by:
>
>1) Selecting the Tools meny, then the Procedure Attibutes option
>2) Select the property in the drop-down list.
>3) Click on the Advanced button
>
>Click the "Hide this member" checkbox or "Don't show in property browser"
>
>NOTE: I think if you choose Hide this member, you will have to reference the property like myobj.[Myprop] or something like that.
>
>Another way is to make the property Read only, that way it won't show up. So, you'd have a private property let and a public property get routine in your class module. That way your class can set the property but the environment using it can only read it.

I remove the Property Let so it does not appear in the form property sheet anymore.

Thanks for given me additional ways of doing that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform