Don't declare the progress bar in your code, add it to your form using the toolbox.

You could add it in code, but you would have to add several other lines of code where adding it from the toolbox will handle adding all that code for you.