![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Simulate keyboard input in WPF Hi, I'm trying to simulate keyboard input using RaiseEvent and TextComposition. My code snippet looks like: TextComposition textComposition = new TextComposition(InputManager.Current, txtBox, "text to input"); TextCompositionEventArgs e = new TextCompositionEventArgs(Keyboard.PrimaryDevice, textComposition); e.RoutedEvent = UIElement.TextInputEvent; txtBox.RaiseEvent(e); My question is: How to simulate an input of the tab key? Is there some way to express that to pass to the TextComposition instance? I read through the MSDN doc but there is no explanation as to how to achieve this. Thanks a lot, Derek |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| cockeyed keyboard input | Vista General | |||
| Keyboard Input Language Help | General Discussion | |||
| No sound, no keyboard input | Vista General | |||
| Using COM Port as Keyboard input | Vista hardware & devices | |||
| keyboard input issue | Vista security | |||