Visual Basic .NET - stop program from freezing during function execution
Posted on 2009-07-14
I have a program that is going to open JPEG files in a directory and analyze them (it analyzes the color content) and updates a textbox with some information. As the program is looping through the JPEG files, I've used the System.Windows.Forms.Application.DoEvents() method so that the output is sent to the textbox as the program is looping through the files. My question is, how do I stop the entire program from freezing. When the loop is running, I cannot move the form window or click any other buttons on the form. Keep in mind that i'm a programming beginner, so I need some hand-holding to help me out.