Click here to Skip to main content
15,889,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
am developing an application that I want to be used in a touch screen. I am new to this kind of developments and so I have some doubts about data insertion in this kind of applications.

i want when i click on any text box then on screen key bored appear automatically and then i use this key bored for insertion of data.
any one tell me how can i make on screen key bored and is it possible to use windows on screen key bored with our application..

I have to use Framework 4.6

If someone could help me with this issues, I would highly appreciate it. Many thanks in advance.

What I have tried:

i don't know how can i do this
Posted
Updated 30-Dec-18 8:54am
Comments
Richard MacCutchan 30-Dec-18 12:58pm    
I think the keyboard ia automatically shown when you click in an edit field. Why not try a simple application to test it? Or look in the MSDN documentation.

1 solution

Rather simple to get the On Screen Keyboard to show:
C#
System.Diagnostics.Process.Start("osk.exe");


Now you are going to need to catch the handle reference if you want to close it automatically. I don't know that one off-hand but Social,MSDN does have a thread on it
How can I close on screen keyboard by using C#[^]
 
Share this answer
 
Comments
Fahid Zahoor 31-Dec-18 10:28am    
thanks its working but please tell me how can i open on screen key bored when my cursor goes to Tex box on screen key bored automatically open
MadMyche 31-Dec-18 11:52am    
What you seek is the TextBox.GotFocus() event
Fahid Zahoor 31-Dec-18 12:25pm    
yes yes but i dont found any GotFocus() event in c# please you tell me how can i do this.
MadMyche 31-Dec-18 13:17pm    
That all depends on what UI you are using; WinForms, WPF, ??
Fahid Zahoor 31-Dec-18 16:12pm    
WinForms

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