Hello,
i m implementing a user interface with some custom controls. Each of those controls inherits from its base class (textbox, listbox etc) plus some custom properties. Those properties are common to each of those controls (DataType, IsRequired, IsListOfValues, MinValue, MaxValue ..... etc). I ve implemented my customTextbox and now i have all the rest.Well, How can i reuse the code what implements those properties (inside customTextBox) and define them in the other custom classes?
It sounds to me like mutli-inheritance, because i want each control's class to inherit from control's base class and from another class what contains the common properties...
Any help?
Thanks in advance...!
i m implementing a user interface with some custom controls. Each of those controls inherits from its base class (textbox, listbox etc) plus some custom properties. Those properties are common to each of those controls (DataType, IsRequired, IsListOfValues, MinValue, MaxValue ..... etc). I ve implemented my customTextbox and now i have all the rest.Well, How can i reuse the code what implements those properties (inside customTextBox) and define them in the other custom classes?
It sounds to me like mutli-inheritance, because i want each control's class to inherit from control's base class and from another class what contains the common properties...
Any help?
Thanks in advance...!