Version

ToolTip Format

WebProgressBar™ supports tooltips that help relay progress information when the mouse is hovered over the control. The tooltip can be formatted to leverage six different values by using the ToolTip property of WebProgressBar along with any of the custom format strings that represent various progress information. The following is the list of intrinsic string values that you can insert into the tooltip format string so that you can customize the information that is displayed in your tooltip:

  • {0} or {ProgressValue} : Shows the current progress value

  • {1} or {PercentProgress} : Shows the current progress in percentage

  • {2} or {RemainingProgress} : Shows the remaining progress value to be completed

  • {3} or {PercentageRemaining} : Shows the remaining progress in percentage

  • {4} or {Min} : Shows the minimum value

  • {5} or {Max} : Shows the maximum value

To show the remaining progress in the tooltip of WebProgressBar :

  1. Place WebProgressBar control on the form and set the Minimum , Maximum and Value properties as show in the following code:

In Visual Basic:

WebProgressBar1.Minimum = 0WebProgressBar1.Maximum = 200WebProgressBar1.Value = 45

In C#:

WebProgressBar1.Minimum = 0;
WebProgressBar1.Maximum = 200;
WebProgressBar1.Value = 45;
  1. Format the ToolTip property so that it shows the remaining progress value.

In Visual Basic:

WebProgressBar1.ToolTip = "Remaining Progress : {2} "

In C#:

WebProgressBar1.ToolTip = "Remaining Progress : {2} ";
  1. Save and run the application. Once you hover your mouse pointer over WebProgressBar, it should look similar to the following image :

images\WebProgressBar ToolTip Format 01.png