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
Angel Princess
NA
100
47.3k
Enter Key as tab loses keypress event
Jun 20 2015 4:17 AM
private void From1_KeyDown(object sender, KeyEventArgs e)
{
Control nextControl;
if (e.KeyCode == Keys.Enter)
{
nextControl = GetNextControl(ActiveControl, !e.Shift);
if (nextControl == null)
{
nextControl = GetNextControl(null, true);
}
nextControl.Focus();
e.SuppressKeyPress = true;
}
this code is for act ENTER key as TAB but if I write code on keypress ENTER, the keypress Enter code doesn't work
Reply
Answers (
1
)
Why textbox empty when enter?
MDI child form flickered while opening.