Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi im having a textbox in a window..when i click the txtbox one virtual keyboard(separate .exe) should pop up...here s my question how can i make this keyboard(.exe) in my desired location in that windows...if possible give me any idea???


and i want that keyboard under the textbox..
Posted
Updated 4-Jul-11 23:09pm
v2

The problem is: if you virtual keyboard is based on actual focus (you can use Windows API SendInput to simulate keyboard on low level, see http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^]), an attempt to click on virtual key grabs the focus.

The solution is: the window should be with the "no activate" style, all controls should be non-focusable. To keep your virtual keyboard operational, there is only one way — to make it also the topmost (always on top style). It is not activated (never) and still on top. (How do you think, can you solve such a difficult problem without some exotic features? No! :-))

Good luck,
—SA
 
Share this answer
 
Comments
Ahn_7 5-Jul-11 5:29am    
here my exact prob is i want to set the keyboard's location..so can i able to do this ??? any ideas ???

NOTE:
both windows(having a textbox) and keyboard are separate .exe
Sergey Alexandrovich Kryukov 5-Jul-11 6:16am    
What a location? What's wrong about assigning properties Top and Left?
As to your main question, will you formally accept it (green button)?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900