Share via


WizardForm.TaskProgressScrollSpeed Property

Definition

Gets or sets the scroll speed of the progress bar.

public:
 property int TaskProgressScrollSpeed { int get(); void set(int value); };
public int TaskProgressScrollSpeed { get; set; }
member this.TaskProgressScrollSpeed : int with get, set
Public Property TaskProgressScrollSpeed As Integer

Property Value

The scroll speed of the progress bar. The default is 6.

Exceptions

The value of the TaskProgressScrollSpeed property is less than 1.

Examples

The following example demonstrates the TaskProgressScrollSpeed property. This example sets the TaskProgressScrollSpeed property to 2. This code example is part of a larger example provided for the WizardForm class.

// Customize the StartTaskProgressMethod.
protected override void StartTaskProgress()
{
    TaskProgressStartColor = Color.Red;
    TaskProgressEndColor = Color.Yellow;
    // Default TaskProgressScrollSpeed is a value of 6.
    TaskProgressScrollSpeed = 2;
    // Default TaskProgressGradientSpeed is a value of 1;
    TaskProgressGradientSpeed = 3;
    //Set the task Glyph.
    TaskGlyph = Icon.FromHandle(Cursors.Arrow.Handle).ToBitmap();
    TaskGlyph.RotateFlip(RotateFlipType.Rotate90FlipNone);
    // Implement the StartTaskProgress from the base class.
    base.StartTaskProgress();
}
// Customize the StartTaskProgressMethod.
protected override void StartTaskProgress()
{
    TaskProgressStartColor = Color.Red;
    TaskProgressEndColor = Color.Yellow;
    // Default TaskProgressScrollSpeed is a value of 6.
    TaskProgressScrollSpeed = 2;
    // Default TaskProgressGradientSpeed is a value of 1;
    TaskProgressGradientSpeed = 3;
    //Set the task Glyph.
    TaskGlyph = Icon.FromHandle(Cursors.Arrow.Handle).ToBitmap();
    TaskGlyph.RotateFlip(RotateFlipType.Rotate90FlipNone);
    // Implement the StartTaskProgress from the base class.
    base.StartTaskProgress();
}

Remarks

As the value of the TaskProgressScrollSpeed property increases, the scroll speed increases.

Applies to