I tried your code, but how can I embedded my progress bar codes into the thread so that the bar will running?