1) Just open the designer, place a "ProgressBar" view on a layout.
2) Assign a name for the progressBar like "bar1".
3) Click "tools....Generate Members" from the Designer window.
4) Check the "bar1" checkbox view and click "Generate Members". This will declare the view in your code module.
5) Then from your code, load in that layout.
6) Then assign a value to the ba1.Progress = 0 to 100