I am processing some xml files in for loop and according to the number of files has been processed I want to show the progress bar. Suppose there are 100 files in directory
You should use BackgroundWorker combined with a ProgressBar control. Here is a simple example.