0 yoni0505 7 Years Ago I want to add some while() loop to a windows form app, the problem is that when I try its freezing the window because of the loop. There is any way or method to add a loop that won't freeze the window? c++
1 Featured Reply jonsca 1,059 7 Years Ago The best method (though I don't have any advice on it) is using a background worker: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx Votes + Comments yoni0505: thanks
0 OPDiscussion Starter yoni0505 7 Years Ago Yep, background worker did the job! I found a nice tutorial, for some reason you need to replace the "." with "->" but it really great tutorial:http://www.c-sharpcorner.com/UploadFile/Ashush/BackgroundWorker03082008094954AM/BackgroundWorker.aspx (after all it isn't possible to learn C++ from MSDN which isn't understandable in most of the cases) Edited 7 Years Ago by yoni0505: n/a