TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bineesh VP
NA
994
446.9k
Enter Key Finction in C#
May 28 2013 7:58 AM
Sir, I have about 20 textBoxe ,10 comboBox and 5 dateTimePicker in a form.
as I want to go cursor downward through each textbox whenever I press 'Enter' Key.
I coded:-
if(e.KeyCode==Keys.Enter)
{
txtLastName.Focus()// goes from txtFirstName to txtLastName
}
I am tired of writing this code in each textBox of my form.
is there an unique code to define these function in a form, i.e keydown event defines for 25 textboxes.?
Reply
Answers (
4
)
Functioning of Enter, Escape and Backspace Keys in Textbox
pdfsharp and inner pairs