Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the Enter event of TextBox, the method InputArea_Enter is called to display the soft keyboard.
But if I minimize the soft keyboard, it can't be displayed again.
When the soft keyboard is minimized, how can TextBox display the soft keyboard when entering the soft keyboard.
private static Process _oskProcess = null;
       public void InputArea_Enter()
       {
             if (_oskProcess != null)
               {
                   Process[] pro = Process.GetProcessesByName("osk");
                   if (pro != null && pro.Length > 0)
                   {
                       return;
                   }
               }
               try
               {
                   _oskProcess = Process.Start("OSK.EXE");
               }
               catch (Exception ex)
               {
                   MessageBox.Show(ex.Message);
               }

       }


What I have tried:

I tried to use the following methods:
[DllImport ("user32.dll")]
Public static extern int ShowWindow (int hWnd, int nCmdShow);

But there's nothing to do with it.
Posted
Updated 12-Jun-18 19:18pm

1 solution

Instead of (or in addition to) the Enter event, you could use the Click[^] event.
 
Share this answer
 
v2

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