ToolStripMenuItem Collection
Dear Code Gurus,
I am trying to figure out a way to change a "collection" that is displayed in a ToolStripMenuItem. The only way that I found out is to redefine the item each time this collection need to change, i.e. using
Code:
MyToolStrip = new ToolStripMenuItem("My Item", MyImage, NewCollection);
where NewCollection is defined as ToolStripMenuItem[];
Is there a better way to do this, i.e. without reinitializing the whole thing every time it needs to be redefined?
Thank you for your help!!!