Create a new windows controls project.

Delete any default controls .NET adds then add a new component control.

Delete everything in the code window and paste in the stuff from above.

Build the project.

In your actual project, right click the toolbox, choose add/remove (or whatever it says) then navigate to the bin folder for your controls project. Select the .dll file and it should add itself to your toolbox.

To use it, do something like this: (this is an example where I was iterating through bookmarks in a word document)

VB Code:
  1. 'work out how much to progress each time
  2.             mdiForm.sbrMain.ProgressBar.Step = CType(100 / doc.Bookmarks.Count, Integer)
  3. For Each bookmark In doc.Bookmarks
  4.    'do your processing here
  5.     'then increment the progress bar
  6.     mdiForm.sbrMain.ProgressBar.PerformStep()
  7. Next