I have a control called MyPanel that inherits from Panel.
Also a control called MyRTB that inherits from RichTextBox.
They are used on a form as follows:
MyPanel in on the form and MyRTF is placed in MyPanel.
I do this so that the properties of MyRTF and of MyPanel are available to
the form.
What I'd rather do is have the MyPanel control contain MyRTF so only one
control need be used on the form.
Of course if I just do that the properties of MyRTF will not be available to
the form unless I make MyRTF public and use something like
MyPanel1.MyRTF1.Text
It not nice the way I have it nor is the alternative mentioned above much
better.
Seems I've read that multiple inheritance is not needed because Interfaces
can be used instead, but I don't know how.
Is there a neat way to do what I need to do?
Thanks in advance