Sometime we need to replace the Enter key functionality with the tab key here is a sample which can help you :
public static void EnterTab(System.Windows.Forms.KeyPressEventArgs e) 
{
   if (e.KeyChar == 13)
   {
     System.Windows.Forms.SendKeys.Send("{tab}");
   }
}

 
 
 
 
 
 
No comments:
Post a Comment