Jobs
Author: Ulysses R. Gotera Date Submitted: 1/7/2006 Category: Microsoft Controls Compatibility: .NET This code has been accessed 3015 times.
Email Yourself this snippet:
Note: .Net Language: C# The code is created in Visual Studio's IDE. Open your Visual Studio or a text editor and copy and paste the code below.
Code
public static void NextControl(System.Windows.Forms.KeyPressEventArgs e) { // ************************************************** // Description : If the user presses the enter key then // the focus will be on the next tab index. // Author : Ulysses R. Gotera // Date Created: Sunday, January 08, 2006 // Country : Philippines // ************************************************** // if (e.KeyChar == (char)13) SendKeys.Send("{TAB}"); }