I would like to do either one of two things :
1) restrict the types of objects that can be dropped on a ContainerControl
based class
- implement AllowDrop
2) add full container capabilities to a Control based class
- implement IControlContainer
unfortunately neither AllowDrop or IControlContainer are available in cf :
(
why ? I now have a set of custom controls that have common customizations
and descend from either Control or ContainerControl. Since multiple
inheritance is not an option, I am currently implementing the common code
through an interface & helper class which, to me, is a really ugly way to do
things requires adds almost as much common code to work with the helper
class as it factors out. I was hoping to be able to derive all controls
from a common base class. BUT I don't see how to derive a ContainerControl
from a Control nor how to make a selective ContainerControl.
gerry
|