JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the ProgressBar Control

As discussed in the In Depth section of this chapter, progress bars display rectangles in a horizontal bar to let the user watch the progress of some operations. Here's the class hierarchy of the ProgressBar class:

Object
   MarshalByRefObject
      Component
         Control
            ProgressBar

You can find the notable public properties of ProgressBar objects in Table 10.20, and the notable public methods in Table 10.21. Note that I'm omitting the properties, methods, and events progress bars inherit from the Control class, which you can find in Tables 5.1, 5.2, and 5.3 in Chapter 5.

Table 10.20: Noteworthy public properties of ProgressBar objects.

Property

Means

Font

Gets/sets the font of the progress bar's text.

ForeColor

Gets/sets the foreground color of the progress bar.

Maximum

Gets/sets the progress bar's maximum value.

Minimum

Gets/sets the progress bar's minimum value.

Step

Gets/sets the value by which the PerformStep method will increase a progress bar's value.

Value

Gets/sets the current value of the progress bar.

Table 10.21: Noteworthy public methods of ProgressBar objects.

Method

Means

Increment

Increments the position of the progress bar by a given amount.

PerformStep

Increments the value of the progress bar by the Step property.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor