1C# WinForm 控件光标 private void MoveCmdToLast(TextBox txtCmdInput, String selCmd)//把所选中的命令移动到最下一行然后显示在文本框中
  2  
函数调用如下:
        private void txtCmdInput_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                e.SuppressKeyPress = true;    / /回车事件已经处理完不再响应了
                string str = GetCmd(txtCmdInput);
                MoveCmdToLast(txtCmdInput, str);
            }
        }

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-02-05
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-11-22
  • 2021-11-24
  • 2022-01-31
  • 2021-06-04
相关资源
相似解决方案