I have set up a For Each statement that loops through a list. The list is made up of 'pixels' which is a custom picturebox class. I need to setup a loop that goes through the list in reverse order. This is what my normal loop looks like:
For Each Tile As Pixel In PixelList
If Tile.PixelNumber = 1 Then
Tile.NewColour()
End If
Next
PixelNumber is just a integer variable that keeps count of which pixel is which.
Pixel is the custom Picturebox class
PixelList is the name of the list
I need to be able to setup a similar loop but one that goes through the list in reverse order of when I Tile was added. So a first in first out situation.