Thank you - I am taking a look at the Worker Thread technique. It certainly looks like it will solve the problem.

Quote Originally Posted by VictorN View Post
You should implement a worker thread and move your lengthy calculations/reading into the thread. then your UI would response to any user actions (like press OK/Cancel buttons and so on.)
Have a look at this essay: Using Worker Threads