D
Dante
Hello all,
I have an application that is used for porting data from one system to
another. There is a scan button that starts a new thread that does the
processing.
Everything seems to work fine unless the application loses focus. If the
app loses focus the form will no longer refresh and it just sits there. If
I click where one of the buttons used to be the app just says not responding
in the title bar.
I am new to using threads so please be very descriptive in your reply.
Here is the code that is executed when the scan button is clicked:
System.Threading.ThreadStart ts = new
System.Threading.ThreadStart(this.runScan);
System.Threading.Thread scanthread = new System.Threading.Thread(ts);
scanthread.IsBackground = true;
scanthread.Start();
Thanks
I have an application that is used for porting data from one system to
another. There is a scan button that starts a new thread that does the
processing.
Everything seems to work fine unless the application loses focus. If the
app loses focus the form will no longer refresh and it just sits there. If
I click where one of the buttons used to be the app just says not responding
in the title bar.
I am new to using threads so please be very descriptive in your reply.
Here is the code that is executed when the scan button is clicked:
System.Threading.ThreadStart ts = new
System.Threading.ThreadStart(this.runScan);
System.Threading.Thread scanthread = new System.Threading.Thread(ts);
scanthread.IsBackground = true;
scanthread.Start();
Thanks