I am using Visual C# sand I\'m using a Windows Form rather than a console application. Therefore I\'m not working in Main (), but rather in the Form File. I\'m also very new
If you need your form to respond to a button click, the loop will have to take place in a thread other than the main thread, a BackgroundWorker would suit you.