Hi Jim,
foreach depends upon the item counter in the Collection's implementation. I
believe the ListBoxItemCollection class assures you that they will be
processed in the same order as in the ListBox.
HTH,
Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Say I have a listbox and I need to go through each entry in the same order
that the are identified in the listbox. I know if I create my own counter
an
manually update the counter as I process each item in the Listbox that I
will
always process them in the order in which they are contained in the
listbox.
If instead I used the "foreach" convention of iteration, can I be assured
that I will process them in the same order that they exists in the
listbox?