Add properties to intrinsic Visual Basic Controls
Posted on 2003-02-26
I am wanting to add a property to the standard Visual Basic textbox. I can add properties to forms by defining Property Get/Let/Set functions in the form's module. But it would seem that the same approach can't be applied to textboxes and other intrinsic VB controls because these don't have associated code modules.
To assist in explaining this problem, let me use an example. I want to add a property called "Abc" to a textbox. How do I do it? I need to be able to set/get hte property value using syntax such as:
Text1.Abc = "Hello World"