ProgressBar VB.NET

Hi,

I would like to know how I can do a Progress bar that looks for:

how many files are in a list

set the max to this number

clears when the work is done

thanks

SolidworksApi macros