<p>In the application there is a dialog where only numeric string entries are valid. Therefore I would like to set the numeric keyboard layout.</p>

<p>Does anyone know how to simulate key press on the keyboard or any other method to change the keyboard layout?</p>

<p>Thanks!</p>

You can use the InputModeEditor:
```
```
InputModeEditor.SetInputMode(textBox1,InputMode.Numeric);
```
```