需要回车跳转的方法,可以跳转到指定的区域,这个功能如何写。

解决方案 »

  1.   

    你可以用点击事件,当e.keycode=回车键这个值时,然后才跳转就好了,不好意思不记得回车键的值是多少了!
      

  2.   

    if(e.keychar==13)
    {
       
    }
      

  3.   

    private void Form1_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == (char)13) {
            e.Handled = true;
            SendKeys.Send("{TAB}");
        }
    }
      

  4.   

    if(e.keychar==13)
    {
        控件.获取焦点
    }