Question: In the application there is a dialog where only numeric string entries are valid. Therefore I would like to set the numeric keyboard layout.

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

Thanks!

Answer: 
You don't need to.

Just like full windows, you can set the edit control to be numeric input only. You can either do it [manually](http://msdn.microsoft.com/en-us/library/bb761655(VS.85).aspx) or in the dialog editor in the properites for the edit control.

The SIP should automatically display the numeric keyboard when the numeric only edit control goes into focus.
You can use the InputModeEditor:

```
InputModeEditor.SetInputMode(textBox1,InputMode.Numeric);

```