WizardForm.TaskGlyph Property

Definition

Gets or sets the image for the form.

public:
 property System::Drawing::Image ^ TaskGlyph { System::Drawing::Image ^ get(); void set(System::Drawing::Image ^ value); };
public System.Drawing.Image TaskGlyph { get; set; }
member this.TaskGlyph : System.Drawing.Image with get, set
Public Property TaskGlyph As Image

Property Value

The Image object that is used in the wizard.

Examples

The following example demonstrates the TaskGlyph property. This example sets the value of the TaskGlyph property to an image of an arrow. 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

Set the TaskGlyph property to an image to display it in the wizard. You can customize the image before it displays in the form.

Applies to