The thread is too busy doing all that file reading etc. Put "DoEvents" at
an
appropriate place in your code. Possibly in the progressbar routine.
That will allow the thread to check for user interaction with the GUI and
to respond to the interactions.
HTH
Vince Morgan
> Thanks working like a dream.Cannot beleive I am so stupid.
> Thanks again
> Basil
Not so. Stupid would be not asking...
Your welcome Basil.
Don't worry, if I hadn't done the same myself at some
point I probably wouldn't have recognised the prob. We
all make mistakes like that from time to time ;)
Regards,
Vince Morgan