Windows Forms Currency TextBox (CurrencyTextbox) Overview
Essential Tools provides control for currency specific behavior in edit controls. CurrencyTextBox is derived from System.Windows.Forms.TextBox and implements all the functionality needed for formatting currency input and validation.
The text box control provided with Windows Forms is capable of displaying and editing string values. This control is generic in nature and some custom enhancements are needed to be able to effectively collect numeric data. For example, if you are allowed to enter only currency values, the following enhancements will have to be added to the text box control.
- Keyboard input validation - Intercept user’s keyboard input and prevent entry of any keys that shouldn’t be present in a currency value.
- Data type - Provide the text contained in the text box as an appropriate data type (such as decimal) that can be used by the developer.
- Culture formatting - Ensure that the formatting of the display is culture sensitive.
Choose between different textbox controls
You can refer to the different textbox controls here.