|
PercentTextBox
PercentTextBox supports display and collection of percentage values. The control handles user keyboard input and percent formatting with no code required. It is fully compatible with the Windows Forms Text Box and uses the globalization features of the .NET platform to provide locale specific formatting.
PercentTextBox control
The control supports two different modes of editing percentage values. In PercentMode, the values are edited as percentage values itself. In DoubleMode, the values are edited as double values and then displayed using percentage formatting. For example, 3.45 will be shown during editing and 345% will be displayed if the control loses focus.
PercentTextBox in DoubleMode
The PercentTextBox control supports displaying negative percentage values in a different color and also using different negative formats.
PercentTextBox with negative value
|
|
|
|