Morfik Controls - ProgressBar

From Morfikwiki.com

Jump to: navigation, search
Figure 1 – A ProgressBar control.

The ProgressBar control is typically used to display feedback to the user while some time-consuming task is being performed.

Contents


[edit] Usage

The ProgressBar control is typically used to display feedback to the user while some time-consuming task is being performed. As the task progresses, the proportion of the control that is highlighted grows, and the percentage value that is displayed increases, as seen in Figure 2.

Figure 2 – Demonstration of how ProgressBar's appearance changes as a task progresses.

[edit] Frequently used Properties

The following is a list of the most commonly used properties of the ProgressBar control with a short description of their function.

[edit] Position

The Position property is an integer value which governs the proportion of the control that is highlighted, and the percentage value that is displayed. Its value must lie between MinPosition (0%) and MaxPosition (100%).

[edit] Other Properties

The following is a list of less-commonly used properties of the ProgressBar control with a short description of their function.

[edit] BorderColor

The BorderColor property specifies the color that should be used for drawing a rectangular border around the ProgressBar. Note: the border will not be visible unless the BorderStyle and BorderWidth properties are also set.

[edit] BorderStyle

The BorderStyle property specifies the line style that should be used for drawing a rectangular border around the ProgressBar. Note: the border will not be visible unless the BorderColor and BorderWidth properties are also set.

[edit] BorderWidth

The BorderWidth property specifies the width of a rectangular border to be drawn around the ProgressBar. Note: the border will not be visible unless the BorderColor and BorderStyle properties are also set.

[edit] Color

The Color property is used to set the color in which the non-highlighted portion of the ProgressBar will be drawn.

[edit] Cursor

The Cursor property, if set, causes the appearance of the mouse cursor to change as it moves over the control.

[edit] Height

The Height property specifies the vertical extent of the ProgressBar.

[edit] Hint

The Hint property, if set, specifies the text of a tooltip that is displayed when the end user moves the mouse cursor over the ProgressBar.

[edit] Left

The Left property specifies the horizontal position of the ProgressBar within the form.

[edit] MaxPosition

The MaxPosition property indicates the minimum possible value of the Position property.

[edit] MinPosition

The MaxPosition property indicates the maximum possible value of the Position property.

[edit] Name

The Name property specifies the identifier used to reference the ProgressBar from browser- or server-side code.

[edit] Opacity

The Opacity property determines the extent to which the ProgressBar obscures any controls placed in its background. A value of 0 means that background controls are fully visible, whereas a value of 100 means that background controls are completely obscured.

[edit] Top

The Top property specifies the vertical position of the ProgressBar within the form.

[edit] Width

The Width property specifies the horizontal extent of the ProgressBar.

[edit] Events

The ProgressBar control does not have any events.

[edit] See also

Personal tools