private void tbRun_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13 && !isRunning) { RunCode(); e.Handled = true; } }