SetTextFromKeyPad Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SetTextFromKeyPad() method accepts a text box control and a keypad value as a string. It inserts the keypad value string into the proper place in the control or removes the proper text if a "<--" character is passed. This method pays attention to the selected text and makes sure that the cursor is positioned in the proper place.
| Overload | Description |
|---|---|
| SetTextFromKeyPad(Control,String) | The SetTextFromKeyPad() method accepts a text box control and a keypad value as a string. It inserts the keypad value string into the proper place in the control or removes the proper text if a "<--" character is passed. This method pays attention to the selected text and makes sure that the cursor is positioned in the proper place. |
| SetTextFromKeyPad(Control,String,Int32) | The SetTextFromKeyPad() method accepts a text box control and a keypad value as a string. It inserts the keypad value string into the proper place in the control or removes the proper text if a "<--" character is passed. This method pays attention to the selected text and makes sure that the cursor is positioned in the proper place. This overload of the method checks to make sure that inserting the character will not exceed the specified number of decimal places. |