My application requires that i add a few additional properties to that existing in the command button.
For e.g.
I would like to have a property called
Key which will store unique identification for the control.
How do i do this.
Thanks in advance.
Printable View
My application requires that i add a few additional properties to that existing in the command button.
For e.g.
I would like to have a property called
Key which will store unique identification for the control.
How do i do this.
Thanks in advance.
If you just want to have a Key property on the command button you could just use the Tag property for that purpose.
But, to extend the functionality of existing controls you need to to enclose the control in an ActiveX wrapper. Map all the existing properties/events of the command button to the ActiveX wrappere and then add new ones as required.
It is a resource overhead however.