5.61 How can I make the Enter Key behave like the Tab Key and move to the next cell?
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q902q

解决方案 »

  1.   

    重写它的键盘处理事件:
    protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) 
     
              { 
     
                   if(msg.WParam.ToInt32() == 13) 
     
                   { 
     
                        SendKeys.Send("{Tab}"); 
     
                    } 
     
                    base.ProcessCmdKey(ref msg, keyData); 
     
              }