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 INFORMATION
To create a default property, first you must create the property by doing
the following:
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: Q161156 How to Create a Default Event for a UserControl Additional query words:
Keywords : kbusage kbVBp500 kbVBp600 kbGrpVB kbCtrlCreat VBCCE VBKBCtrl_VBKBStd |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |