Hi Alex,
Thanks for your suggestions. In fact, the code I presented was just a sample. It's not a complete code. The reason for using the Hide() is that I can reuse the object to display another progress bar (without recreating it). Typically, the progress bar object is created as a public variable at the start of the application, and this variable is released when the application terminates.
- Ravi