Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Enter Key as tab loses keypress event
Angel Princess
Jun 20 2015 4:17 AM
474
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Why textbox empty when enter?
MDI child form flickered while opening.