private void loginControl1_btnOnScreenProcessKeyboardUser(object sender, EventArgs e) { if (p == null) { string Pproccename; pid = 0; p = System.Diagnostics.Process.Start("osk"); pid = p.Id; Pproccename = p.ProcessName.Trim(); } else { p.Kill(); p.Dispose(); p = null; } }
if (p1id > 0) //if (p1 != null) { p1.Kill(); p1.Dispose(); p1 = null; } else if (pid > 0) // else if (p != null) { p.Kill(); p.Dispose(); p = null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)