VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



C# - Upon pressing the enter key tabs to the next control

by Ulysses R. Gotera (9 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Sat 1st July 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

C# - Upon pressing the enter key tabs to the next control

API Declarations


.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.


Rate C# - Upon pressing the enter key tabs to the next control



{
// **************************************************
// 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}");
}

Download this snippet    Add to My Saved Code

C# - Upon pressing the enter key tabs to the next control Comments

No comments have been posted about C# - Upon pressing the enter key tabs to the next control. Why not be the first to post a comment about C# - Upon pressing the enter key tabs to the next control.

Post your comment

Subject:
Message:
0/1000 characters