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); } }
[DllImport ("user32.dll")] Public static extern int ShowWindow (int hWnd, int nCmdShow);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)