Show virtual keyboard when textbox in any application is clicked C #

I am making a C # windows application that will allow full control of your Windows computer with just a game controller. I am now done coding the mouse control and I am testing for bugs. Now I want to create a virtual keyboard that appears when a text box is pressed in any application. For example, the Android keyboard, which only appears when you need it. I have searched and the only thing I have found so far is to call the function only when the textbox is in the same form. My question is if there is a way to make a listener when the textbox is clicked for all open programs. I would appreciate any help.

+3


source to share


1 answer


You have to send a code or an integer between forms when the user clicks on the textbox using the code:

public string _label3
    {
        get { return label3.Text; }
    }

      

you write the value and submit it to another form and then get it using the set method.



public string _label3
    {
        set { return label1.Text; }
    }

      

Using a timer to keep track of the upcoming value all the time or check for label1.text when u gets that value using this code to open the virtual keyboard.

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

      

0


source







All Articles