hi,
I want to create two classes that derive from System.ComponentModel.Component.
ClassA will be my container.
ClassB will be the class that will be stored in a collection variable inClassA.
When the developer drags and drops an instance of ClassB into the ClassA Design View, I want to add this ClassB instance to the ClassB collection on ClassA.
Here's my code:
public classClassA : Component
{
List<ClassB> classBList = new List<ClassB>();
}
// I'll dragfrom toolboxinstances of this class and drag them into ClassA Design View
public classClassB : Component
{
}
thanks in advance.