System.Windows.Forms.ProgressBarRenderer.DrawHorizontalBar Method

Draws an empty progress bar control that fills in horizontally.

Syntax

public static void DrawHorizontalBar (System.Drawing.Graphics g, System.Drawing.Rectangle bounds)

Parameters

g
The System.Drawing.Graphics used to draw the progress bar.
bounds
The System.Drawing.Rectangle that specifies the bounds of the progress bar.

Remarks

Before using this method, you should verify that the ProgressBarRenderer.IsSupported property returns true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0