Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generic ProgressBar Form

Status
Not open for further replies.

SprintFlunky

Programmer
Apr 6, 2004
51
US
I have a conceptual question about a generic ProgressBar form. I have a "Load" form that calls several class modules to load various Word/Excel files into dataset datatables, then process the datatables according to the business logic nedded for each table. Since the class modules are not forms themselves, and I want to display the progress to the user, I created a simple “ProgressBar” form with headings, messages, and a progress bar. In each class, I instantiate the form and display the appropriate information. All works well.

My question is, should I instantiate the progress form in the original form and pass it to all the classes or is it ok to create and dispose of the form for each class I call?

Thanks for any input.

Chris
 
The first (for me) is better. When a process finishes.. reset the progressbar by seting its value to zero.
 
That’s the direction I was leaning toward but wanted to make sure before I started changing the classes.

Thanks for the input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top