ProgressBarAdv Events in Windows Forms Progress Bar (ProgressBarAdv)
29 Apr 20212 minutes to read
The list of events and a detailed explanation about each of them is given in the following sections.
Events table
ProgressBarAdv events | Description |
---|---|
DrawWaitingCustomRender | This event can be handled to draw a custom waiting render. WaitingCustomRender must be set to `true`.td></tr> |
ValueChanged | This event is handled to set the text of the ProgressBarAdv when the value changes.The TextStyle property should be set to 'Custom'. |
Members | Description |
---|---|
Graphics | Gets the graphic used to paint. |
Handled | Gets/sets a value indicating whether the DrawWaitingCustomRender event was handled. |
Rectangle | Gets the bounding rectangle. |
private void progressBarAdv1_DrawWaitingCustomRender(object sender, Syncfusion.Windows.Forms.Tools.ProgressBarAdvDrawEventArgs e)
{
//Gets the graphics used to paint using the Graphics property
e.Graphics.PixelOffsetMode.ToString();
//If you perform custom drawing, you should specify that to the ProgressBarAdv
//(so that it does not perform its default painting), by setting the below code.
e.Handled = true;
//To get the bounding rectangle use the below code
e.Rectangle.ToString();
}
Private Sub progressBarAdv1_DrawWaitingCustomRender(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Tools.ProgressBarAdvDrawEventArgs)
'Gets the graphics used to paint using the Graphics property
e.Graphics.PixelOffsetMode.ToString();
'If you perform custom drawing, you should specify that to the ProgressBarAdv
'(so that it does not perform its default painting), by setting the below code.
e.Handled = true;
'To get the bounding rectangle use the below code
e.Rectangle.ToString();
End Sub