This code is executed by many way. When it\'s executed by the form button it works (the button start a thread and in the loop it call this method = it works). BUT it doesn\'
Depending on your coding style either use return right after the Invoke or put the actual action as an else block.