[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 951
  • Last Modified:

Creating vb.net virtual key board that doesn't take the focus away?

Hello experts,
I created a vb.net keyboard control that I want to function just like the windows virtual keyboard control "osk.exe" .   I am building this for a touch screen application, and the windows control has too many options and the buttons are too small.    I am using windows api calls to send the keys, but the problem is when I click a button, on my keyboard it takes focus away from lets say Notepad.exe.  How do I make sure my keyboard doesn't take away the focus?
0
skyzipper
Asked:
skyzipper
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
See my comments and code here:
http://www.experts-exchange.com/Microsoft/Development/Microsoft_Programming/Q_24329144.html#a24168496

Also note, in that same thread:

    "Another limitation to be aware of is that the WS_EX_NOACTIVATE flag will NOT work WITHIN the SAME application.  When used on a form in the same application it no longer prevents focus from being taken.  Thus the keyboard app has to be its own executable..."
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now