A
Alex
Hi all,
I'm trying to create an arraylist of a user control class... I'm able to
define the list and add objects (panels) to it, but I can access and of the
panel properties using an index...
Is there a way to do this, or do I need to copy each node into an interim
handle of the correct class before manipulating it?
ie,
I can do this:
UC_TeamMemberPanel p1 = new UC_TeamMemberPanel();
p1.Name = "Panel " + counter;
....to change the Name property. However, when I do this:
ArrayList teamMembers = new ArrayList();
teamMembers.Add(new UC_TeamMemberPanel());
I cannot access the name property in this way:
teamMembers[0].Name = "Panel " + counter;
Is there a way to access the .Name prop via the array?
I'm trying to create an arraylist of a user control class... I'm able to
define the list and add objects (panels) to it, but I can access and of the
panel properties using an index...
Is there a way to do this, or do I need to copy each node into an interim
handle of the correct class before manipulating it?
ie,
I can do this:
UC_TeamMemberPanel p1 = new UC_TeamMemberPanel();
p1.Name = "Panel " + counter;
....to change the Name property. However, when I do this:
ArrayList teamMembers = new ArrayList();
teamMembers.Add(new UC_TeamMemberPanel());
I cannot access the name property in this way:
teamMembers[0].Name = "Panel " + counter;
Is there a way to access the .Name prop via the array?