- VS 2010
- Developing 32-bit app that runs on 64-bit OS (Windows 7, Windows 8 - desktop app)
- C#
- .NET 4.0
- WinForms
I have found many threads on launching the Windows on-screen keyboard (osk.exe
) from an application, but I am running into some problems. It appears to be because I am running a 32-bit app on a 64-bit OS. I've tried the code posted by WooCaSh here:
Keyboard on the screen in WinForms
But none of the three different paths work for me. For the sysnative
path, Process.Start
fails with "Cannot find the path specified." For the system32
and osk.exe
paths, I get the "Could not start the on-screen keyboard" error dialog.
I found a possible workaround here, which is a little more complicated than what I was looking for (post by eryang): http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/10ebc62f-e6d7-4072-9fd1-ea3784a0966f/
- Is there an easier or correct way to do this?
- I was hoping that running my app on a tablet would automatically launch the on-screen keyboard when the user selects a textbox, but no luck. Is this normal or am I missing something? I've found that the keyboard is not automatically launched in Windows 8 when in Desktop mode (which my app is): http://www.bleepingcomputer.com/forums/t/480250/keyboard-does-not-pop-up-automatically/ Apparently it works on Windows 7 tablets, but I can't test because I only have Windows 8 tablets here.