SetTextFromKeyPad(Control,String,Int32) 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.
This overload of the method checks to make sure that inserting the character will not exceed the specified number of decimal places.
Parameters
- control
- Required. Holds the control into which the text is inserted.
- keyValue
- Required. Holds the text to insert into the control or "<--" if text should be removed.
- numDecimals
- Required. Holds the number of decimal places that are allowed. Set to -1 if the number of decimals should not be considered.