Modifying Your Procedure For A Progress Indicator With A Multipage Control

You need to modify the procedure that is executed when the user clicks the OK Button — the Click event handler procedure for the button, named OK_Click. First, insert the following statement at the top of your procedure:

MultiPagel.Value = 1

This statement activates Page2 of the MultiPage control (the page that displays the progress indicator).

In the next step, you're pretty much on your own. You need to write code to calculate the percent completed and assign this value to a variable named PctDone. Most likely, this calculation will be performed inside of a loop. Then insert the following statement, which will update the progress indicator:

Call UpdateProgress(PctDone)

0 0

Post a comment