Display the on-screen keyboard if the user sets focus to the text field. WPF with .Net 4 Client Profile

For my full-screen WPF application, I need to display the Windows 7 on-screen keyboard if the user sets focus to the text field.

There is no hard keyboard for the panel, but just a mouse for interacting with it. In this case, I need an on-screen keyboard to fill in the text fields.

WPF application is written in C # .Net in the client profile .Net Framework 4.0.

Thanks for the answer Andi

+6
source share
1 answer

You can hook the following code to the TextBox event of GotKeyboardFocus or GotFocus

Process.Start("systempath..\\osk.exe"); 
+5
source

Source: https://habr.com/ru/post/885943/


All Articles