Invoke code arugment error C# wont work when i use arguements

Hi, See below c# code. I just want to get any running iexplore process and trigger the boolean accordingly. but when i use argument to output the value of the boolean it wont work.

 Process[] processlist = Process.GetProcessesByName("iexplore.exe");
bool Out_StillRunning = true;
    do
    {
        foreach (Process p in processlist)
        {
            if (p.Equals("iexplore.exe"))
            {
                Out_StillRunning = true;
            }
            else
            {
                Out_StillRunning = false;
            }
        }
    } while (Out_StillRunning = true);

Hi @rohangroombridge,

Don’t declare variable ‘Out_StillRunning’ inside invoke code just pass it from invoke code arguments.