D
DanielSchaffer
I am trying to create a class that inherits fromControlCollection, but I am getting the compile error "Nooverload for method 'ControlCollection' takes '0' arguments",and VS highlights the constructor method:
public AvailabilityCollection(Control owner)
{ _owner = owner; }
Here is what the .NET SDK has for the ControlCollectionconstructor:
public ControlCollection(
Control owner
);
So, I'm not sure what exactly I'm doing wrong here.
I've also noticed (and this could be related) that theControlCollection class usually seems to be instantiated byusing a 'CreateControlCollection' method of a parent class,instead of directly using new ControlCollection(object). How canI implement this into a parent class for theAvailabilityCollection class?
User submitted from AEWNET (http://www.aewnet.com/)
public AvailabilityCollection(Control owner)
{ _owner = owner; }
Here is what the .NET SDK has for the ControlCollectionconstructor:
public ControlCollection(
Control owner
);
So, I'm not sure what exactly I'm doing wrong here.
I've also noticed (and this could be related) that theControlCollection class usually seems to be instantiated byusing a 'CreateControlCollection' method of a parent class,instead of directly using new ControlCollection(object). How canI implement this into a parent class for theAvailabilityCollection class?
User submitted from AEWNET (http://www.aewnet.com/)