Pages

Social Icons

Monday 14 November 2011

Replacing Tab key functionality with Enter Key C#


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