WizardForm.TaskProgressScrollSpeed Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.