2 Replies - 2110 Views - Last Post: 08 May 2013 - 05:30 AM Rate Topic: -----

#1 ACParson  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 17-February 10

Running On Screen Keyboard in Windows 7 from VB.net

Posted 01 May 2013 - 05:44 AM

I am attempting to create a program that lets you put input into a text area, and calls the Win7 OSK instead of using a form one. Yet, no matter what method I use, I get "Could not load On-Screen Keyboard."

The code I am trying to use is

Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.System) + Path.DirectorySeparatorChar + "osk.exe")



I am running it on a Windows 7 Ultimate 64-bit system.

How can I get it to respond?

Is This A Good Question/Topic? 0
  • +

Replies To: Running On Screen Keyboard in Windows 7 from VB.net

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Running On Screen Keyboard in Windows 7 from VB.net

Posted 01 May 2013 - 06:07 AM

I just tried your code and got the same result, but when I set the compile to x64 it opens. AnyCPU did not work.

Actually, I stand corrected. AnyCPU does work but I had to uncheck Prefer 32-bit (in vs 2012)

This post has been edited by CharlieMay: 01 May 2013 - 06:08 AM

Was This Post Helpful? 0
  • +
  • -

#3 ACParson  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 17-February 10

Re: Running On Screen Keyboard in Windows 7 from VB.net

Posted 08 May 2013 - 05:30 AM

View PostCharlieMay, on 01 May 2013 - 06:07 AM, said:

I just tried your code and got the same result, but when I set the compile to x64 it opens. AnyCPU did not work.

Actually, I stand corrected. AnyCPU does work but I had to uncheck Prefer 32-bit (in vs 2012)


I still couldn't get it to work, so I substituted a created On-Screen Keyboard using another VB form. Thanks for your help!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1