I have a program written in VB 2010 express under windows xp which does some heavy number crunching combined with serial communication. When it “gets too busy” it does not update the screen anymore (done simply with Textbox.text = “any text”) and it does not respond to user input in any text box. Not even to a click on any text box.
Is there a way I can get the program to do screen update and respond to user input while it is busy?
thanks
Use a BackgroundWorker to perform intensive work (rather than using the UI thread):
VB.NET BackgroundWorker Use
How To Update Controls Using BackgroundWorker in VB.NET
If you need finer grain control then create and manage your own threads: Multithreaded Applications (but the BackgroundWorker would probably meet your needs).