Newest update green
Ok well still digging at this it occurs to me now what i need to do is wait for the events in my first
iteration to fire then continue the foreach loop.
Here is what I tried , problem is the events dont fire until the loop exits.
Added to the end of my foreach
for (int ii = 0; ii < 10; ii++)
{
System.Threading.Thread.Sleep(1000);
}
Here is my issue from the code below ( int I always ends up == 250 )
What I am trying to achieve is first time through the loop i = 250 , second i = 500 , third i=750
in another class I have Public int i;
Update --In Red--
This gets me to 750 , However I now have the issue that i need to return the values seperately not just the end result of 750
ArrayList list = new ArrayList();
Class class = new Class();
list.add("1");
list.add("2");
list.add("3");
int i = 0 ;
foreach(string s in list)
{
i + 250;
class.i = i;
}