Calling the on-screen keyboard using a button in C#

ykombinator picture ykombinator · Jan 10, 2012 · Viewed 39.4k times · Source

I am creating a windows application using C#, where in a button on the GUI when clicked, should display the on-screen keyboard.

Would appreciate if any help is granted. thanks.

Also, since I am mostly using Emgu Cv library for the rest of my app, Can we simply use it for calling the On-screen keyboard?

Answer

Jits picture Jits · Jan 10, 2012

In C#, you can simply write the following line of code to invoke the on-screen keyboard application that comes with Windows:

System.Diagnostics.Process.Start("osk.exe");

You can find more help here.