HOWTO: Create a Default Property For a User ControlLast reviewed: March 21, 1997Article ID: Q161208 |
The information in this article applies to:
SUMMARYYou can create a default property for your User Control. A default property is the property selected when you select the control in Design Mode. For example, when you select a Label, the highlighted property is Caption. Therefore, Caption is the default property for the Label. This article will explain how to create a default property for a User Control that you create.
MORE INFORMATIONAfter the property is created, follow these steps to make the property the default property:
You can only have one default Property for each Control. Therefore, you can only select the "User Interface Default" checkbox for one property. If you select this checkbox for another property, it will ask you if you want to make the newly-selected property the Default property.
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q161156 TITLE : How to Create a Default Event for a UserControl |
Keywords : kbusage vb5all vb5howto VBKBCtrl_VBKBStd kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |