The information in this article applies to:
SUMMARYMicrosoft Visual Basic 5.0 and 6.0 allow you to create custom controls and Classes that have a default property. This behavior is similar to the intrinsic TextBox control. The TextBox control has a default value that corresponds to the string value of its Text property. This allows the following code to behave identically:
-and-
Both will display a dialog box containing the Text shown within the
TextBox.
MORE INFORMATION
To set an existing property as the default value for a custom control
or Class, do the following:
-and-
are equivalent statements.
REFERENCES
Microsoft Visual Basic version 5.0 Books Online Additional query words:
Keywords : kbusage kbVBp500 kbVBp600 kbGrpVB VBKBCtrl |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |