开发者

Show up the On Screen keyboard if the user sets the focus on a textfield. WPF with .Net 4 Client profile

开发者 https://www.devze.com 2023-02-26 06:17 出处:网络
For my full screen WPF application, I need to show up the Windows 7 onscreen keyboard, if a user sets the focus on a textfield.

For my full screen WPF application, I need to show up the Windows 7 onscreen keyboard, if a user sets the focus on a textfield.

There's no hard keyboard for the panel, just a mouse device to interact with it. In this ca开发者_如何学Pythonse I need a onscreen keyboard to fill up the textfields.

The WPF-application is written in C# .Net on the .Net Framework 4.0 Client profile.

Thanks for reply Andi


You can wire up following code to TextBox's GotKeyboardFocus or GotFocus event

Process.Start("systempath..\\osk.exe");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号