Take the 2-minute tour ×

Unfortunately I'm very new to different control properties and was wondering why the following code doesn't work when I try to set the TreeNodeCollection. Is there another way I would be able to obtain a continuous layered "list"?

public TreeNodeCollection MenuItems { get; set; }
share|improve this question

1 Answer 1

up vote 0 down vote accepted

MenuItems is already instantiated, just use this

share|improve this answer
It's a custom control. MenuItems is one of the control's 'properties' which I'd like to be able to edit... But set doesn't seem to work. AddRange isn't quite what I'm looking for but thanks! –  Nate-Wilkins Jun 13 '11 at 2:38

Your Answer


