Group: StrataFrame Users
Posts: 430,
Visits: 507
|
I want to subclass a control , but get the functionality from two parent classes, and am not sure whats the best way to go about this. Scenario is as follows:
I have a MyTextBox which suclasses the SF textBox and adds in some funtionality like for instance highlighting the textBox if it has focus, so that it stands out. This is working fine.
Now I want to start using a 'MyTextBoxNumeric' text Box , which will be SubClassing the DeveExpress Sf Wrapped textEdit box, but I also want the funtiionality that is in MYTExtBox above.
Now in Dot net (as far as I am aware) I cannot subClass from two different classes, so am wondering whats the best way to do this, without copying and pasting too much code
|